diff --git a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
index 6a835598a3..11d4288421 100644
--- a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
+++ b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
@@ -45,12 +45,6 @@
${josdk.version}
test
-
- io.fabric8
- crd-generator-apt
- ${fabric8-client.version}
- provided
-
org.slf4j
slf4j-api
@@ -86,7 +80,19 @@
maven-compiler-plugin
3.11.0
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+
+
+
-
\ No newline at end of file
+
diff --git a/caffeine-bounded-cache-support/pom.xml b/caffeine-bounded-cache-support/pom.xml
index d0840f420a..fccdec8aab 100644
--- a/caffeine-bounded-cache-support/pom.xml
+++ b/caffeine-bounded-cache-support/pom.xml
@@ -30,11 +30,6 @@
${project.version}
test
-
- io.fabric8
- crd-generator-apt
- test
-
org.apache.logging.log4j
log4j-slf4j2-impl
@@ -75,6 +70,23 @@
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+ process-test-classes
+
+ ${project.build.testOutputDirectory}
+ WITH_ALL_DEPENDENCIES_AND_TESTS
+
+
+
+
diff --git a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java
index f59b619996..d902a75860 100644
--- a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java
+++ b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java
@@ -2,7 +2,7 @@
import org.junit.jupiter.api.Test;
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
class VersionTest {
diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml
index 455b1268fd..b2f43380e8 100644
--- a/operator-framework/pom.xml
+++ b/operator-framework/pom.xml
@@ -108,6 +108,23 @@
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+ process-test-classes
+
+ ${project.build.testOutputDirectory}
+ WITH_ALL_DEPENDENCIES_AND_TESTS
+
+
+
+
org.apache.maven.plugins
maven-surefire-plugin
diff --git a/pom.xml b/pom.xml
index 930178b9fa..78f5a6c268 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,7 +61,7 @@
jdk
5.10.1
- 6.13.4
+ 7.0-SNAPSHOT
2.0.12
2.24.2
5.14.2
@@ -247,6 +247,18 @@
https://oss.sonatype.org/content/repositories/snapshots/
+
+
+
+
+ true
+ always
+
+ ossrh
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+
+
diff --git a/sample-operators/mysql-schema/pom.xml b/sample-operators/mysql-schema/pom.xml
index 46d555966c..27aec54945 100644
--- a/sample-operators/mysql-schema/pom.xml
+++ b/sample-operators/mysql-schema/pom.xml
@@ -44,11 +44,6 @@
mysql-connector-java
8.0.30
-
- io.fabric8
- crd-generator-apt
- provided
-
org.apache.logging.log4j
log4j-slf4j2-impl
@@ -82,6 +77,18 @@
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+
+
+
org.apache.maven.plugins
maven-surefire-plugin
diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml
index d22260c614..0dab30ee60 100644
--- a/sample-operators/tomcat-operator/pom.xml
+++ b/sample-operators/tomcat-operator/pom.xml
@@ -40,11 +40,6 @@
io.fabric8
kubernetes-httpclient-vertx
-
- io.fabric8
- crd-generator-apt
- provided
-
org.apache.logging.log4j
log4j-slf4j2-impl
@@ -104,6 +99,22 @@
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+
+
+
diff --git a/sample-operators/webpage/pom.xml b/sample-operators/webpage/pom.xml
index 34b6846b94..995152f555 100644
--- a/sample-operators/webpage/pom.xml
+++ b/sample-operators/webpage/pom.xml
@@ -44,11 +44,6 @@
takes
1.24.4
-
- io.fabric8
- crd-generator-apt
- provided
-
org.awaitility
awaitility
@@ -75,6 +70,22 @@
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ io.fabric8
+ crd-generator-maven-plugin
+ ${fabric8-client.version}
+
+
+
+ generate
+
+
+
+