Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-384

using goal assembly:single with descriptorRef jar-with-dependencies packages wrong content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-3
    • 2.2-beta-4
    • None
    • None
    • Maven version: 2.0.9
      Java version: 1.5.0_12
      OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

    Description

      We attached the goal assembly:single to the package phase. The plugin execution is configured to use descriptorRef jar-with-dependencies

      The resulting jar-with-dependencies file also contains content that shouldn't be there.
      in the log you can see that the directory d: is added. this results in an extra directory D_ in the jar.

      mvn -X package:

      ...
      [INFO] META-INF/ already added, skipping
      [INFO] META-INF/MANIFEST.MF already added, skipping
      [DEBUG] adding directory de/
      [DEBUG] adding directory de/spree/
      [DEBUG] adding directory de/spree/browsertest/
      [DEBUG] adding entry de/spree/browsertest/TestApplet$1.class
      [DEBUG] adding entry de/spree/browsertest/TestApplet$FileSizeListener.class
      [DEBUG] adding entry de/spree/browsertest/TestApplet.class
      [DEBUG] adding entry log4j.xml
      [DEBUG] adding directory META-INF/maven/
      [DEBUG] adding directory META-INF/maven/de.spree.browsertest/
      [DEBUG] adding directory META-INF/maven/de.spree.browsertest/TestApplet/
      [DEBUG] adding entry META-INF/maven/de.spree.browsertest/TestApplet/pom.xml
      [DEBUG] adding entry META-INF/maven/de.spree.browsertest/TestApplet/pom.properties
      [DEBUG] adding directory D:/
      [DEBUG] adding directory D:/maven_test/
      [DEBUG] adding directory D:/maven_test/TestApplet/
      [DEBUG] adding directory D:/maven_test/TestApplet/target/
      [DEBUG] adding directory D:/maven_test/TestApplet/target/classes/
      [DEBUG] adding directory D:/maven_test/TestApplet/target/classes/de/
      [DEBUG] adding directory D:/maven_test/TestApplet/target/classes/de/spree/
      [DEBUG] adding directory D:/maven_test/TestApplet/target/classes/de/spree/browsertest/
      [DEBUG] adding entry D:/maven_test/TestApplet/target/classes/de/spree/browsertest/TestApplet$1.class
      [DEBUG] adding entry D:/maven_test/TestApplet/target/classes/de/spree/browsertest/TestApplet$FileSizeListener.class
      [DEBUG] adding entry D:/maven_test/TestApplet/target/classes/de/spree/browsertest/TestApplet.class
      [DEBUG] adding entry D:/maven_test/TestApplet/target/classes/log4j.xml
      [INFO] ------------------------------------------------------------------------
      

      toplevel contents of the jar-with-dependencies:

      15.01.2009  12:54    <DIR>          .
      15.01.2009  12:54    <DIR>          ..
      15.01.2009  12:54    <DIR>          de
      15.01.2009  12:54    <DIR>          D_
      15.01.2009  12:52             1.017 log4j.xml
      15.01.2009  12:54    <DIR>          META-INF
      15.01.2009  12:54    <DIR>          org
      

      Attachments

        1. TestApplet.zip
          9 kB
          Radoslaw Czerniak

        Activity

          People

            Unassigned Unassigned
            czerniak Radoslaw Czerniak
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: