title: Surefire 2.22.2 is not finding junit tests after removal of provider dependency
body: <p>First time posting! I've tried looking through all the other posts regarding surefire issues without any avail, so any help would be greatly appreciated.</p>
  
  <p>I am currently trying to deal with the "junit-platform-surefire-provider has been deprecated" warning in my project. Version 2.22.2 of surefire is being used, where all of the junit jupiter tests in our project are currently found.</p>
  
  <p><strong>WARNING:
  The junit-platform-surefire-provider has been deprecated and is scheduled to
  be removed in JUnit Platform 1.4. Please use the built-in support in Maven
  Surefire >= 2.22.0 instead.
  <a href="https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven" rel="nofollow noreferrer">https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven</a></strong></p>
  
  <p><a href="https://i.stack.imgur.com/HLbb7.png" rel="nofollow noreferrer">Test results with 55 tests found</a></p>
  
  <p>The issue arises when I try to remove the junit-platform-surefire-provider and jupiter-engine dependencies from within the plugin.</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.22.2&lt;/version&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.junit.platform&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-platform-surefire-provider&lt;/artifactId&gt;
                      &lt;version&gt;1.3.2&lt;/version&gt;
                  &lt;/dependency&gt;
  
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
                      &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
                      &lt;version&gt;${junit-jupiter.version}&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.22.2&lt;/version&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>This provider is going to be deprecated and I am trying to get rid of it. I followed the documentation at <a href="https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven" rel="nofollow noreferrer">https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven</a> in order to try and use the built in support in Maven Surefire. In addition to removing those two dependencies, I added the following two dependencies to my  section on my POM file.</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
          &lt;version&gt;5.6.2&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
          &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
          &lt;version&gt;5.6.2&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Once I have done this, the build will complete, but it no longer finds any tests.</p>
  
  <p><a href="https://i.stack.imgur.com/4tocn.png" rel="nofollow noreferrer">Test Results with ZERO tests found</a></p>
  
  <p>Is there something that I'm missing?</p>