title: Maven ignoring tests on build
body: <p>Currently trying to test a project and for some reason, it won't run the tests when using <code>mvn clean install</code>. Strangely enough though, right-clicking on the project and do <code>Run 'All Tests'</code> on Intellij, runs all the tests well.</p>
  <p>The folder is called <code>test</code>, with the tests having a <code>Test</code> added after the name of the class they are testing. I have this configuration in the POM file set up:</p>
  <pre><code>            &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;attach-javadocs&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;jar&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.8.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;release&gt;11&lt;/release&gt;
                      &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &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;3.0.0-M5&lt;/version&gt;
              &lt;/plugin&gt;
  </code></pre>
  <p>with the java version being set as such: <code>&lt;java.version&gt;11&lt;/java.version&gt;</code></p>
  <p>and the junit dependency being set like so:</p>
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>This will result in:</p>
  <pre><code>[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ ******* ---
  [INFO] 
  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] 
  [INFO] Results:
  [INFO] 
  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  </code></pre>
  <p>Usually I don't need to even add the <code>maven-surefire-plugin</code> under the plugins tag, although I did this to specify the version, maybe that might help but it's of no use.</p>
  <p>Any idea what the issue might be?</p>
  <h1>UPDATE 1:</h1>
  <p>Added some configuration for the surefire plugin: <code>&lt;useModulePath&gt;false&lt;/useModulePath&gt;</code></p>
  <p>Logs from <code>mvn -X test</code>: <a href="https://controlc.com/0e9faba9" rel="nofollow noreferrer">https://controlc.com/0e9faba9</a></p>