[ 
http://jira.codehaus.org/browse/MSHADE-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162267#action_162267
 ] 

Roger Pack commented on MSHADE-30:
----------------------------------

Thanks much.

Note also that if you have a pom file with multiple submodules, and one of 
those submodules if
maven-shade-plugin version 1.0.x and others are 1.2, for some reason it "can" 
and "does" choose 1.0.x over the rest
so if you run
mvn install within the submodule it works fine
then if you run it for the entire structure, it errs with the same thing.

Fix:
change all references to the shade plugin to be 1.2, then it works.
Good luck.
-=r

> duplicate entry error
> ---------------------
>
>                 Key: MSHADE-30
>                 URL: http://jira.codehaus.org/browse/MSHADE-30
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>            Reporter: Michael Mattox
>            Assignee: Benjamin Bentmann
>             Fix For: 1.2
>
>         Attachments: mshade-30-patch.txt
>
>
> I receive this error:
> Embedded error: duplicate entry: org/apache/xmlbeans/FilterXmlObject.class
> It started with a javax.xml.namespace class.  So I started putting excludes, 
> and then I kept getting one new class after another.  If I exclude everything 
> then I doubt my application is going to work.
> I really don't understand this error.  I have never seen this type of error 
> with the fatjar eclipse plugin.  I understand it's complaining about having 
> the same class twice, but if it's not a problem for my eclipse project or the 
> maven build, why is it a problem for shade?
> I feel the shade plugin should be able to handle this gracefully.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to