[
https://jira.codehaus.org/browse/MASSEMBLY-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed MASSEMBLY-609.
----------------------------------------
Resolution: Fixed
Assignee: Kristian Rosenvold
Docs updated in r1638201.
The proper expression is the "logical" ${artifact.artifactId} since
${artifactId} always refers to the module artifact.
> Misbehavior on multi-module projects, outputDirectory not being interpolated
> properly
> -------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-609
> URL: https://jira.codehaus.org/browse/MASSEMBLY-609
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: (attached)
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
> Reporter: Alexander Tumin
> Assignee: Kristian Rosenvold
> Priority: Blocker
> Fix For: 2.5.2
>
> Attachments: parent.zip
>
>
> With <useAllReactorProjects/> set to true; <outputDirectory/> tag value is
> not being interpolated on a module-by-module basis as said in
> [documentation|http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html]
> - instead of substituting ${artifactId} with value of each processed modules
> it is always being substituted with the value of module which calls to the
> assembly plugin.
> In other words, instead of the following desired directory structure:
> distribution/target/distribution-1.0-bin/modules/child1/child1-1.0.jar
> distribution/target/distribution-1.0-bin/modules/child2/child2-1.0.jar
> distribution/target/distribution-1.0-bin/modules/child3/child3-1.0.jar
> i am getting flatenned
> distribution/target/distribution-1.0-bin/modules/distribution/child1-1.0.jar
> distribution/target/distribution-1.0-bin/modules/distribution/child2-1.0.jar
> distribution/target/distribution-1.0-bin/modules/distribution/child3-1.0.jar
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)