JUnit categories with Maven

------------------------------------------------------- T E S T S ------------------------------------------------------- [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ junit-categories --- [INFO] com.craigpardey:junit-categories:jar:1.0-SNAPSHOT [INFO] +- org.jmock:jmock-junit4:jar:2.6.0-RC2:test [INFO] | +- org.jmock:jmock:jar:2.6.0-RC2:test [INFO] | | \- org.hamcrest:hamcrest-library:jar:1.3.RC2:test [INFO] | \- junit:junit-dep:jar:4.4:test [INFO] \- junit:junit:jar:4.10:test [INFO] \- org.hamcrest:hamcrest-core:jar:1.1:test See how jmock-junit4 depends on junit-dep:4.4, andthat it appears beforeJUnit 4.10? That’s the cause of the error above. You can either exclude each of these conflicting dependencies or you can make sure that the versions of JUnit and/or JUnit-dep appear first in the classpath. [Read More]
JUnit