 <p>You could use the <a href="http://maven.apache.org/enforcer/maven-enforcer-plugin/index.html" rel="nofollow">Maven Enforcer plugin</a> for this, using the "Ban Duplicate Classes" rule from the <a href="http://mojo.codehaus.org/extra-enforcer-rules/banDuplicateClasses.html" rel="nofollow">Extra Enforcer Rules</a>.</p> <p>So this would be a POM-level fix and should affect anything that builds from that POM. Your project would not build if duplicate classes are found.</p>