brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetoslav Neykov (JIRA)" <>
Subject [jira] [Created] (BROOKLYN-223) The dist contains duplicate classes in different jars
Date Wed, 10 Feb 2016 15:06:18 GMT
Svetoslav Neykov created BROOKLYN-223:

             Summary: The dist contains duplicate classes in different jars
                 Key: BROOKLYN-223
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Svetoslav Neykov

Various jars in the dist contain conflicting class implementations. 
Need to check and confirm whether duplicate classes are expected or address possible conflicts.

Sample duplicates:
  * org.xmlpull.v1.XmlPullParserException
  * org.objectweb.asm.signature.SignatureWriter
  * io.swagger.util.Yaml
  * com.jcraft.jsch.agentproxy.USocketFactory

For example asm jars with different groupIds are included. Aspectj is included with two jars
one of which is subset of the other (aspectjrt-1.7.4.jar and aspectjweaver-1.7.4.jar). Swagger
is bundled in our brooklyn-utils-rest-swagger project jar, but still included as a separate

  * get all (potentially) conflicting classes: find . -name *.jar | xargs -n1 unzip -Z -1
| grep "\.class$"  | sort | uniq -c | sort -nr | awk '$1 > 1'
  * list jars including specific class: for i in `find . -name '*.jar'`; do if unzip -Z -1
$i | grep -q '^org/xmlpull/v1/XmlPullParserException.class'; then echo $i; fi; done

This message was sent by Atlassian JIRA

View raw message