[
http://jira.codehaus.org/browse/MASSEMBLY-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146816#action_146816
]
Petar Tahchiev commented on MASSEMBLY-312:
------------------------------------------
Not sure if this is a bug, since the outputFileNameMapping clearly denotes that
it is supposed for file-names, not directory names. But if the maven team
decides to change this behavior I have attached a patch that can be used. Once
again, IMHO, this is not a bug itself, but instead misuse of the
outputFileNameMapping attribute.
HTH, Petar.
> outputFileNameMapping not respected when the unpack=true
> --------------------------------------------------------
>
> Key: MASSEMBLY-312
> URL: http://jira.codehaus.org/browse/MASSEMBLY-312
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-2
> Reporter: Calvin Yu
>
> If I configure a dependencySet to unpack = true, the outputFileNameMapping is
> not respected, and instead the artifact is decompressed into the output
> directory. Looking at the code, this looks like it'll affect moduleSets as
> well.
> For example:
> <dependencySet>
> <outputDirectory>some_directory</outputDirectory>
>
> <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
> <unpack>true</unpack>
> </dependencySet>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira