Maven exclusion not working
问题 I am working on a project that has a dependency of JUnit 4.11 and a transitive dependency of JMock 2.6.0-RC2 who in turn has a dependency of JUnit-dep 4.4 . This transitive dependency of JUnit-dep is overriding the setting in my local pom for JUnit . By overriding, I mean that when I call a JUnit method, it calls the one from v4.4 as opposed to v4.11. Adding exclusions for JMock and for JUnit-dep had no effect on my resolved dependencies. Note: JUnit and JUnit-dep have separate artifactId s,