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

unpack adds the name of the artifact in case of filtered unpack

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4
    • None
    • None
    • None

    Description

      In case I use unpack=true with unpackOptions.filtered=true, then the dependency will land in a file named after the "groupId/artifactId/type/classifier/version".

      By removing the filtered tag, the dependency will be put into the right outputDirectory.

      Example:

        <dependencySets>
          <dependencySet>
            <outputDirectory>/</outputDirectory>
            <includes>
              <include>groupId:artifactId:zip</include>
            </includes>
            <unpack>true</unpack>
            <unpackOptions>
              <excludes>
                <exclude>**/*.xml</exclude><!-- unpack will include those -->
                <exclude>**/*.cfg</exclude>
              </excludes>
            </unpackOptions>
            <useProjectArtifact>false</useProjectArtifact>
             <filtered>true</filtered>
          </dependencySet>
        </dependencySets>
      

      Will generate a dir called "groupId.artifactId-2.0.0-SNAPSHOT.zip/".

      The output directory is completely ignored in this case, if I would specify "X" inside, the above directory won't land in x instead it will land in the above generated dir.

      Cheers,

      Tamas

      Attachments

        Issue Links

          Activity

            People

              krosenvold Kristian Rosenvold
              smil Tamas Cserveny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: