You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2014/10/28 17:32:10 UTC
[jira] (MASSEMBLY-672) unpack adds the name of the artifact in case
of filtered unpack
[ https://jira.codehaus.org/browse/MASSEMBLY-672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated MASSEMBLY-672:
-----------------------------------------
Fix Version/s: 2.5.1
> unpack adds the name of the artifact in case of filtered unpack
> ---------------------------------------------------------------
>
> Key: MASSEMBLY-672
> URL: https://jira.codehaus.org/browse/MASSEMBLY-672
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Tamas Cserveny
> Fix For: 2.5.1
>
>
> 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:
> {code:xml}
> <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>
> {code}
> 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
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)