diff --git a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
index ea7699dea8..01d9f11b8a 100644
--- a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
+++ b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml
@@ -89,9 +89,6 @@
generate
-
- WITH_ALL_DEPENDENCIES_AND_TESTS
-
diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml
index dac36571da..1aceaa6556 100644
--- a/operator-framework/pom.xml
+++ b/operator-framework/pom.xml
@@ -119,7 +119,9 @@
generate
+ process-test-classes
+ ${project.build.testOutputDirectory}
WITH_ALL_DEPENDENCIES_AND_TESTS
diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java
index 09b52f1078..5325742d5f 100644
--- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java
+++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java
@@ -43,7 +43,7 @@ void correctlyAppliesManuallySpecifiedCRD() {
@Group("crd.example")
@Version("v1")
@Kind("Test")
- private static class TestCR extends CustomResource implements Namespaced {
+ public static class TestCR extends CustomResource implements Namespaced {
}
@ControllerConfiguration
diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java
index 0f94ae92e4..1a75ffaa94 100644
--- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java
+++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java
@@ -7,5 +7,5 @@
@Group("sample.javaoperatorsdk")
@Version("v1")
-class TestCustomResource extends CustomResource implements Namespaced {
+public class TestCustomResource extends CustomResource implements Namespaced {
}
diff --git a/sample-operators/mysql-schema/pom.xml b/sample-operators/mysql-schema/pom.xml
index 84ab638cd0..0017ac74ed 100644
--- a/sample-operators/mysql-schema/pom.xml
+++ b/sample-operators/mysql-schema/pom.xml
@@ -89,9 +89,6 @@
generate
-
- WITH_ALL_DEPENDENCIES_AND_TESTS
-
diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml
index 724873b78d..471d43d4ed 100644
--- a/sample-operators/tomcat-operator/pom.xml
+++ b/sample-operators/tomcat-operator/pom.xml
@@ -115,9 +115,6 @@
generate
-
- WITH_ALL_DEPENDENCIES_AND_TESTS
-
diff --git a/sample-operators/webpage/pom.xml b/sample-operators/webpage/pom.xml
index 96932c7fcc..cda7e1e46f 100644
--- a/sample-operators/webpage/pom.xml
+++ b/sample-operators/webpage/pom.xml
@@ -86,9 +86,6 @@
generate
-
- WITH_ALL_DEPENDENCIES_AND_TESTS
-