You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kevin Calcagno (JIRA)" <ji...@codehaus.org> on 2010/10/25 07:08:06 UTC

[jira] Commented: (MASSEMBLY-516) Error in Example for sharing-descriptors?

    [ http://jira.codehaus.org/browse/MASSEMBLY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240851#action_240851 ] 

Kevin Calcagno commented on MASSEMBLY-516:
------------------------------------------

I discovered this same issue.  After looking at the code of the plugin, it appears to have been an intentional change (and a good one, IMHO).  But the documentation indeed needs to be updated.

> Error in Example for sharing-descriptors?
> -----------------------------------------
>
>                 Key: MASSEMBLY-516
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-516
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: -
>            Reporter: Knut Pape
>
> On Page
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says that the assembly file from a jar on the class-path shoulld be included the following way:
> <descriptors>
>    <descriptor>myassembly.xml</descriptor>
> </descriptors>
> This didn't work for me. After some fidling (I'm pritty sure that the problem was not a spelling mistake) I came to the following solution: Instead of referencing the assembly by filename I referenced it by it's ID and voila - it worked:
> <descriptorRefs>
>   <descriptorRef>my-assembly-descriptor-id</descriptorRef>
> </descriptorRefs>

-- 
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