Repository: quarkusio/quarkus
Issue: quarkus-maven-plugin generates extension project with failing DevMode test.

**Describe the bug**
When using the quarkus-maven-plugin to generate a bare bones extension to build upon you get a project with generated tests of which the DevMode test fails after adjusting the pom.xml to include the needed maven-surefire-plugin configuration.

**Expected behavior**
I would expect the generated project, after adjustment of the pom for the maven-surefire-plugin to have a SUCCESS outcome when running mvn clean verify.

**Actual behavior**
The outcome is FAILURE with the following output:
```
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.acme.quarkus.greeting.test.QuarkusGreetingDevModeTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.022 s <<< FAILURE! - in org.acme.quarkus.greeting.test.QuarkusGreetingDevModeTest
[ERROR] org.acme.quarkus.greeting.test.QuarkusGreetingDevModeTest.test  Time elapsed: 0.005 s  <<< ERROR!
org.junit.jupiter.api.extension.TestInstantiationException: Unable to create test proxy
Caused by: java.lang.IllegalAccessException: class io.quarkus.test.QuarkusDevModeTest cannot access a member of class org.acme.quarkus.greeting.test.QuarkusGreetingDevModeTest with modifiers ""

[INFO] Running org.acme.quarkus.greeting.test.QuarkusGreetingTest
2021-01-07 13:49:27,914 INFO  [io.quarkus] (main) Quarkus 1.10.5.Final on JVM started in 0.082s. 
2021-01-07 13:49:27,915 INFO  [io.quarkus] (main) Profile test activated. 
2021-01-07 13:49:27,916 INFO  [io.quarkus] (main) Installed features: [quarkus-greeting]
2021-01-07 13:49:27,923 INFO  [io.quarkus] (main) Quarkus stopped in 0.000s
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.687 s <<< FAILURE! - in org.acme.quarkus.greeting.test.QuarkusGreetingTest
[ERROR] org.acme.quarkus.greeting.test.QuarkusGreetingTest  Time elapsed: 1.687 s  <<< ERROR!
java.lang.RuntimeException: org.junit.jupiter.api.extension.TestInstantiationException: Failed to create test instance
Caused by: org.junit.jupiter.api.extension.TestInstantiationException: Failed to create test instance
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.IllegalStateException: Unable to locate CDIProvider

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   QuarkusGreetingDevModeTest.test » TestInstantiation Unable to create test prox...
[ERROR]   QuarkusGreetingTest » Runtime org.junit.jupiter.api.extension.TestInstantiatio...
[INFO] 
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Greeting Extension - Parent 1.0-SNAPSHOT:
[INFO] 
[INFO] Greeting Extension - Parent ........................ SUCCESS [  0.096 s]
[INFO] Greeting Extension - Runtime ....................... SUCCESS [  1.530 s]
[INFO] Greeting Extension - Deployment .................... FAILURE [  3.789 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.614 s
[INFO] Finished at: 2021-01-07T13:49:27+01:00
[INFO] ------------------------------------------------------------------------
```
**To Reproduce**
Steps to reproduce the behavior:
1. Generate the project using:
```
mvn io.quarkus:quarkus-maven-plugin:1.10.5.Final:create-extension -N \\
    -DgroupId=org.acme \\ 
    -DartifactId=quarkus-greeting \\  
    -Dversion=1.0-SNAPSHOT \\ 
    -Dquarkus.nameBase="Greeting Extension" 
```
2. Update the parent pom.xml plugin management section too contain:
```
<plugin>
    <artifactId>maven-surefire-plugin</artifactId> 
    <version>3.0.0-M5</version>
    <configuration>
        <systemPropertyVariables>
            <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
            <maven.home>${maven.home}</maven.home>
        </systemPropertyVariables>
    </configuration>
</plugin>
```
3. Run the command:
```
$ mvn clean verify
```

**Environment (please complete the following information):**
 - Output of `uname -a` or `ver`:  
 ```
Darwin mac.local 17.7.0 Darwin Kernel Version 17.7.0: Sun Jun  2 20:31:42 PDT 2019; root:xnu-4570.71.46~1/RELEASE_X86_64 x86_64
```
 - Output of `java -version`: 
```
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing)
```
 - GraalVM version (if different from Java):  -
 - Quarkus version or git rev:
```
1.10.5.Final
```
 - Build tool (ie. output of `mvnw --version` or `gradlew --version`): 
```
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /Volumes/Data/Users/basp/.sdkman/candidates/maven/current
Java version: 11.0.7, vendor: GraalVM Community, runtime: /Volumes/Data/Users/basp/.sdkman/candidates/java/20.1.0.r11-grl
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac"
```

Changed files:
integration-tests/maven/src/test/resources/expected/create-extension-pom-minimal/minimal-extension/deployment/src/test/java/org/acme/my/project/minimal/extension/test/MinimalExtensionDevModeTest.java
devtools/maven/src/main/resources/create-extension-templates/DevModeTest.java
integration-tests/maven/src/test/resources/expected/new-extension-current-directory-project/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
integration-tests/maven/src/test/resources/expected/create-extension-pom-add-to-bom/add-to-bom/deployment/src/test/java/org/acme/my/project/add/to/bom/test/AddToBomDevModeTest.java
integration-tests/maven/src/test/resources/expected/new-extension-project-with-jboss-parent/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
integration-tests/maven/src/test/resources/expected/new-extension-project/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
integration-tests/maven/src/test/resources/expected/create-extension-pom-with-grand-parent/with-grand-parent/deployment/src/test/java/org/acme/myproject/with/grand/parent/test/WithGrandParentDevModeTest.java
integration-tests/maven/src/test/resources/expected/create-extension-pom-itest/itest/deployment/src/test/java/org/acme/my/project/itest/test/ItestDevModeTest.java

diff --git a/devtools/maven/src/main/resources/create-extension-templates/DevModeTest.java b/devtools/maven/src/main/resources/create-extension-templates/DevModeTest.java
index 10a0eaabb28..bea249e22f5 100644
--- a/devtools/maven/src/main/resources/create-extension-templates/DevModeTest.java
+++ b/devtools/maven/src/main/resources/create-extension-templates/DevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class [=artifactIdBaseCamelCase]DevModeTest {
+public class [=artifactIdBaseCamelCase]DevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/create-extension-pom-add-to-bom/add-to-bom/deployment/src/test/java/org/acme/my/project/add/to/bom/test/AddToBomDevModeTest.java b/integration-tests/maven/src/test/resources/expected/create-extension-pom-add-to-bom/add-to-bom/deployment/src/test/java/org/acme/my/project/add/to/bom/test/AddToBomDevModeTest.java
index 36edbcfa75b..7b4e92a348f 100644
--- a/integration-tests/maven/src/test/resources/expected/create-extension-pom-add-to-bom/add-to-bom/deployment/src/test/java/org/acme/my/project/add/to/bom/test/AddToBomDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/create-extension-pom-add-to-bom/add-to-bom/deployment/src/test/java/org/acme/my/project/add/to/bom/test/AddToBomDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class AddToBomDevModeTest {
+public class AddToBomDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/create-extension-pom-itest/itest/deployment/src/test/java/org/acme/my/project/itest/test/ItestDevModeTest.java b/integration-tests/maven/src/test/resources/expected/create-extension-pom-itest/itest/deployment/src/test/java/org/acme/my/project/itest/test/ItestDevModeTest.java
index ce6f909b567..5890739d629 100644
--- a/integration-tests/maven/src/test/resources/expected/create-extension-pom-itest/itest/deployment/src/test/java/org/acme/my/project/itest/test/ItestDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/create-extension-pom-itest/itest/deployment/src/test/java/org/acme/my/project/itest/test/ItestDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class ItestDevModeTest {
+public class ItestDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/create-extension-pom-minimal/minimal-extension/deployment/src/test/java/org/acme/my/project/minimal/extension/test/MinimalExtensionDevModeTest.java b/integration-tests/maven/src/test/resources/expected/create-extension-pom-minimal/minimal-extension/deployment/src/test/java/org/acme/my/project/minimal/extension/test/MinimalExtensionDevModeTest.java
index 16ad0c52487..c6294029a5d 100644
--- a/integration-tests/maven/src/test/resources/expected/create-extension-pom-minimal/minimal-extension/deployment/src/test/java/org/acme/my/project/minimal/extension/test/MinimalExtensionDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/create-extension-pom-minimal/minimal-extension/deployment/src/test/java/org/acme/my/project/minimal/extension/test/MinimalExtensionDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class MinimalExtensionDevModeTest {
+public class MinimalExtensionDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/create-extension-pom-with-grand-parent/with-grand-parent/deployment/src/test/java/org/acme/myproject/with/grand/parent/test/WithGrandParentDevModeTest.java b/integration-tests/maven/src/test/resources/expected/create-extension-pom-with-grand-parent/with-grand-parent/deployment/src/test/java/org/acme/myproject/with/grand/parent/test/WithGrandParentDevModeTest.java
index 28366191262..9786b73a468 100644
--- a/integration-tests/maven/src/test/resources/expected/create-extension-pom-with-grand-parent/with-grand-parent/deployment/src/test/java/org/acme/myproject/with/grand/parent/test/WithGrandParentDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/create-extension-pom-with-grand-parent/with-grand-parent/deployment/src/test/java/org/acme/myproject/with/grand/parent/test/WithGrandParentDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class WithGrandParentDevModeTest {
+public class WithGrandParentDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/new-extension-current-directory-project/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java b/integration-tests/maven/src/test/resources/expected/new-extension-current-directory-project/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
index 6132fc535f3..d1a5fb8fc76 100644
--- a/integration-tests/maven/src/test/resources/expected/new-extension-current-directory-project/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/new-extension-current-directory-project/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class MyExtDevModeTest {
+public class MyExtDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/new-extension-project-with-jboss-parent/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java b/integration-tests/maven/src/test/resources/expected/new-extension-project-with-jboss-parent/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
index 6132fc535f3..d1a5fb8fc76 100644
--- a/integration-tests/maven/src/test/resources/expected/new-extension-project-with-jboss-parent/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/new-extension-project-with-jboss-parent/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class MyExtDevModeTest {
+public class MyExtDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
diff --git a/integration-tests/maven/src/test/resources/expected/new-extension-project/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java b/integration-tests/maven/src/test/resources/expected/new-extension-project/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
index 6132fc535f3..d1a5fb8fc76 100644
--- a/integration-tests/maven/src/test/resources/expected/new-extension-project/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
+++ b/integration-tests/maven/src/test/resources/expected/new-extension-project/my-ext/deployment/src/test/java/org/acme/my/ext/test/MyExtDevModeTest.java
@@ -8,7 +8,7 @@
 
 import io.quarkus.test.QuarkusDevModeTest;
 
-class MyExtDevModeTest {
+public class MyExtDevModeTest {
     @RegisterExtension
     static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest() // Start hot reload (DevMode) test with your extension loaded
         .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));