Fail Maven build upon wrong dependencies

One of our customers wants to its fail the build process upon dupliactes jars, duplicates classes (a.k.a. Jar hell, class loading hell...).

I found this tool http://jboss.org/tattletale.html . Have any one used/extended it, or even better its Maven plugin http://www.jit-consulting.de/java/jboss/maven-plugin-feat-jboss-tattletale.html to facilliate such requriement ?

 

Comments

I think you can write to enforcer maven plugin rule that will use the tattletale jar http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html The maven-tattletale-plugin is for maven reports Thanks ,

Thank you