Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-224

Not possible to exclude classes from primary jar only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      The <excludes> config item can be used to exclude classes from a jar.

      However, if this is done for the main jar, the exclusion also applies to any other jars created with a different classifier.

      It does not appear to be possible to exclude a class from the main jar and include it in any others.

      This forces the use of other solutions such a the Maven Antrun Plugin

      Attachments

        Activity

          People

            khmarbaise Karl Heinz Marbaise
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: