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

Empty outputFileNameMapping creates zip entries with no name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2-beta-2
    • 2.2-beta-2
    • None
    • None
    • Maven 2.0.9

    Description

      I'm working on a project that has system dependencies. I want to package those dependencies with their original name into the assembly (i.e. use the same name of the JAR as in the system path).

      Leaving the outputFileNameMapping in the assembly descriptor's dependencySet creates ZipEntries in the resulting zip file but those don't have a name. Example:

      unzip -qql target/assembly.zip
            0  04-16-08 16:20   assembly/
      2205737  04-07-08 18:23   assembly/lib/
         2621  04-16-08 16:20   assembly/lib/
      

      Note the second line ...

      I have attached a sample project that uses Maven's uber Jar as system scope dependency. Run the test with mvn -DMAVEN_HOME=.... package assembly:assembly to create the zip.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dirk@xanthippe.ping.de Dirk Olmes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: