Error "TestEngine with ID 'junit-vintage' failed to discover tests" with Spring Boot 2.2 : <p>I have a simple app using Spring Boot and Junit 5:</p>

<ul>
<li><p>When using Spring Boot 2.1 (e.g, 2.1.8 or 2.1.12), my unit tests run
smoothly</p></li>
<li><p>When using Spring Boot 2.2 (e.g., 2.2.2.RELEASE or 2.3.2.RELEASE) my unit tests fail with error message </p></li>
</ul>

<pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project XXX: There are test failures.
[ERROR]
[ERROR] Please refer to D:\Projets\workspace\XXX\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] TestEngine with ID 'junit-vintage' failed to discover tests
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] TestEngine with ID 'junit-vintage' failed to discover tests
[ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:656)
</code></pre>

<p>I am using Maven 3.6.1, JDK 1.8, JUnit 5.6.0 and JUnit platform 1.6.0. I exclude the dependency on <code>junit:junit</code> from <code>spring-boot-starter-test</code>, so that I have no JUnit 4 artifacts left in the dependency tree. Note that both Spring Boot 2.2 and 2.3 use <code>maven-surefire-plugin</code> 2.22.2, so my problem does not originate from any regression of the <code>maven-surefire-plugin</code>.</p>

<p>Should I stick to Spring Boot <strong>2.1</strong> in order to have my unit test working?</p>

<p>Thanks in advance for your help.</p>
