[ 
https://jira.codehaus.org/browse/MASSEMBLY-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=300338#comment-300338
 ] 

Dennis Lundberg commented on MASSEMBLY-553:
-------------------------------------------

I've had another look at this issue and the behavior you see is actually the 
expected, and documented, one. Compare the docs for the "single" goal between 
2.2-beta-5 and 2.2

http://maven.apache.org/plugins/maven-assembly-plugin-2.2-beta-5/single-mojo.html
http://maven.apache.org/plugins/maven-assembly-plugin-2.2/single-mojo.html

Under the attributes heading you can see that the "single" goal "Is NOT 
inherited by default in multi-project builds." in 2.2. That text is missing 
from the 2.2-beta-5 docs. So apparently this change was made deliberately.

What does this mean then? It means that an execution of maven-assembly-plugin 
which is defined in a parent POM will not be inherited by a project using that 
parent POM as its parent. I'm currently trying to find out if/how one can make 
it be inherited.
                
> Assembly plugin ignores attached assemblies
> -------------------------------------------
>
>                 Key: MASSEMBLY-553
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-553
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2, 2.2.1
>            Reporter: SebbASF
>            Assignee: John Casey
>            Priority: Critical
>         Attachments: assembly-bug.zip
>
>
> This used to work in 2.2-beta-5, but both 2.2 and 2.2.1 seem to ignore 
> attached descriptors in "mvn install"
> Sample project to follow.
> This works:
> mvn -Dass.vers=2.2-beta-5 install -Prc
> This does not:
> mvn -Dass.vers=2.2.1 install -Prc
> If you compare the ouput from the two runs, you will see that the following 
> is missing from 2.2.1:
> [INFO] [assembly:attached {execution: default}]
> [INFO] Reading assembly descriptor: src/assembly/bin.xml
> [INFO] Reading assembly descriptor: src/assembly/src.xml
> [INFO] Building zip: 
> D:\maven-tests\assembly-bug\target\assembly-bug-1.0-SNAPSHOT-bin.zip
> [INFO] Building zip: 
> D:\maven-tests\assembly-bug\target\assembly-bug-1.0-SNAPSHOT-src.zip
> Apache Commons cannot use 2.2 or 2.2.1 as a result of this bug

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to