[jira] [Commented] (XMLBEANS-557) Duplicate classes in jar

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (XMLBEANS-557) Duplicate classes in jar

PJ Fanning (Jira)

    [ https://issues.apache.org/jira/browse/XMLBEANS-557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17291988#comment-17291988 ]

dvponomarev commented on XMLBEANS-557:
--------------------------------------

{quote}Those are 4 classes in 4 different packages.
{quote}
No, there are 8 class files in 4 different packages and only 4 unique class files. In each package there are two duplicated class files.

 
{quote}Why is your file-manager showing the TypeSystemHolder twice?
{quote}
Because there are two files with path org/apache/xmlbeans/metadata/system/sXMLCONFIG/TypeSystemHolder.class

Try this: 
{code:java}
unzip xmlbeans-4.0.0.jar
...
replace org/apache/xmlbeans/metadata/system/sXMLCONFIG/TypeSystemHolder.class? [y]es, [n]o, [A]ll, [N]one, [r]ename:
{code}
this also demonstrates the issue.
  

> Duplicate classes in jar
> ------------------------
>
>                 Key: XMLBEANS-557
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-557
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 4.0.0
>            Reporter: dvponomarev
>            Priority: Major
>         Attachments: image-2021-02-27-01-17-20-360.png
>
>
> Download [https://search.maven.org/remotecontent?filepath=org/apache/xmlbeans/xmlbeans/4.0.0/xmlbeans-4.0.0.jar].
>  Open archive and navigate to duplicate classes:
> {code:java}
> org/apache/xmlbeans/metadata/system/sXMLCONFIG/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLTOOLS/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLLANG/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLSCHEMA/TypeSystemHolder.class{code}
> !image-2021-02-27-01-17-20-360.png!
> Found with maven-enforcer-plugin:3.0.0-M3:enforce:
>  
> {code:java}
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BanDuplicateClasses failed with message:
>  Duplicate classes found:
> Found in:
>  org.apache.xmlbeans:xmlbeans:jar:4.0.0:compile
>  Duplicate classes:
>  org/apache/xmlbeans/metadata/system/sXMLCONFIG/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLTOOLS/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLLANG/TypeSystemHolder.class
>  org/apache/xmlbeans/metadata/system/sXMLSCHEMA/TypeSystemHolder.class
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]