Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-30

duplicate entry error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.2
    • None

    Description

      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.

      Attachments

        1. mshade-30-patch.txt
          10 kB
          Henrik Johansson

        Activity

          People

            bentmann Benjamin Bentmann
            cunparis Michael Mattox
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: