Take the 2-minute tour ×  Does anyone have code to detect
duplicate JARs in the classpath?  Background: When there are two
versions of the same JAR in the classpath, really strange things
can happen. This can even happen when using tools like Maven:
Change a dependency and build the WAR without cleaning first.
Since target/webapp/WEB-INF/lib wasn't cleaned, the dependency
will be in there twice.  Is there a safety-net for this?
share|improve this question Verify if this can help you:
stackoverflow.com/questions/17555928/… –  Edgard Leal Dec 16 '13
at 13:16 add comment  5 Answers  up vote 20 down vote accepted
JBoss Tattletale might help you with this.  It's a free tool
which scans the JAR files used by your project and gives you a
report about them.  Amongst its feature are:    • Spot if a
class is located in multiple JAR files   • Spot if the same JAR
file is located in multiple locations   • Find similar JAR files
that have different version numbers share|improve this answer
add comment  There is a Maven