maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <>
Subject Re: Easy way to tell if I have .class file conflicts between two jars?
Date Sun, 05 Apr 2015 18:11:39 GMT

take a look at this enforcer rule:


Op Sun, 05 Apr 2015 19:57:07 +0200 schreef Kevin Burton  

> Im looking for a somewhat easy way to tell if a directory of .jar files
> contains class reference which conflict.
> For example,org/xml/sax/XMLReader.class from two incompatible versions.
> I wrote a simple command that does a find and then a "jar tf" to list the
> contents, then I sort by the filename, but this creates false positives  
> in
> the case where the files are actually the same .class file version.
> I think I could just use SHA1 to detect this … if the SHA1 is identical I
> can just ignore it.
> Of course a WAY better way to do this would be some sort of maven plugin
> that looked at all dependencies and generated errors/warnings if you add  
> a
> dependency with class conflicts.  That would be sweet.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message