4 responses to “Making Maven 2 work with JUnit 4”

  1. Matthew McCullough

    Thanks a ton for this helpful info. This really shortcuts me to getting my maven 2 projects running surefire on JUnit 4 tests.

  2. spiros

    You are welcome :-)

  3. Asaf

    What’s the difference in behavior between 2.3 and 2.2, in respect to supporting JUnit 4?

  4. spiros

    Surefire 2.2 does not support JUnit 4. I don’t remember exactly, but I think that JUnit 4 test cases (with the @Test annotation) are ignored in 2.2.

    BTW 2.3 is now final, so you don’t have to use a snapshot from the snapshots repository.