title: Surefire is not picking up Junit 4 tests
body: <p>I cannot get Maven Surefire to execute my JUnit 4 tests even after I tried all the advices from another post.</p>
  
  <p>My POM:</p>
  
  <pre><code>&lt;project&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;maven-test&lt;/groupId&gt;
    &lt;artifactId&gt;maven-test&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.junit&lt;/groupId&gt;
        &lt;artifactId&gt;com.springsource.org.junit&lt;/artifactId&gt;
        &lt;version&gt;4.4.0&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;  
    &lt;/dependencies&gt;
  
    &lt;build&gt; 
      &lt;plugins&gt; 
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.5&lt;/source&gt;
            &lt;target&gt;1.5&lt;/target&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;2.5&lt;/version&gt;
        &lt;/plugin&gt; 
      &lt;/plugins&gt;
    &lt;/build&gt; 
  &lt;/project&gt;
  </code></pre>
  
  <p>My Test:</p>
  
  <pre><code>public class TestSimple {
  
   public void testSurePass()
   {
    int x = 1;
    Assert.assertEquals(1, x);
   }
  
   @Test
   public void surePass()
   {
    int x = 1;
    Assert.assertEquals(1, x);  
   }
  }
  </code></pre>
  
  <p>Surefire picked up testSurePass, but never saw surePass.  I tried mvn -X:</p>
  
  <pre><code>[INFO] [surefire:test {execution: default-test}]
  [DEBUG] dummy:dummy:jar:1.0 (selected for null)
  [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.5:runtime (selected for runtime)
  [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.5:runtime (selected for runtime)
  [DEBUG] Adding to surefire booter test classpath: C:\Users\.m2\repository\org\apache\maven\surefire\surefire-booter\2.5\surefire-booter-2.5.jar
  [DEBUG] Adding to surefire booter test classpath: C:\Users\.m2\repository\org\apache\maven\surefire\surefire-api\2.5\surefire-api-2.5.jar
  [DEBUG] dummy:dummy:jar:1.0 (selected for null)
  [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-providers:pom:2.5 for project: null:surefire-junit:jar:null from the repository.
  [DEBUG] Adding managed dependencies for unknown:surefire-junit
  [DEBUG]   org.apache.maven.surefire:surefire-api:jar:2.5
  [DEBUG]   org.apache.maven.surefire:surefire-booter:jar:2.5
  [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.9
  [DEBUG]   org.apache.maven.surefire:surefire-junit:jar:2.5:test (selected for test)
  [DEBUG]     junit:junit:jar:3.8.1:test (selected for test)
  [DEBUG]     org.apache.maven.surefire:surefire-api:jar:2.5:test (selected for test)
  [DEBUG] Adding to surefire test classpath: C:\Users\.m2\repository\org\apache\maven\surefire\surefire-junit\2.5\surefire-junit-2.5.jar
  [DEBUG] Adding to surefire test classpath: C:\Users\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
  [DEBUG] Adding to surefire test classpath: C:\Users\.m2\repository\org\apache\maven\surefire\surefire-api\2.5\surefire-api-2.5.jar
  [DEBUG] Test Classpath :
  [DEBUG]   C:\Workspace\tests\maven-test\target\test-classes
  [DEBUG]   C:\Workspace\tests\maven-test\target\classes
  [DEBUG]   C:\Users\.m2\repository\org\junit\com.springsource.org.junit\4.4.0\com.springsource.org.junit-4.4.0.jar
  [DEBUG] Setting system property [user.dir]=[C:\Workspace\tests\maven-test]
  [DEBUG] Setting system property [localRepository]=[C:\Users\.m2\repository]
  [DEBUG] Setting system property [basedir]=[C:\Workspace\tests\maven-test]
  </code></pre>
  
  <p>Surefire 2.5 adds junit-3.8.1 to its test classpath automatically.  Although junit-4.4.0 is also added (not to surefire test classpath, but Test Classpath), junit-3.8.1 seems to take precedence.  Maven's surefire-api project has a dependency on junit-3.8.1 according to <a href="http://maven.apache.org/surefire/surefire-providers/dependencies.html" rel="nofollow noreferrer">http://maven.apache.org/surefire/surefire-providers/dependencies.html</a>.  </p>
  
  <p>Am I missing some configuration here?  </p>