You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steve Gilbert (JIRA)" <ji...@codehaus.org> on 2011/01/12 23:36:57 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=251390#action_251390 ] 

Steve Gilbert commented on MASSEMBLY-516:
-----------------------------------------

Since I just spent many hours trying to get this to work and only found this JIRA issue AFTER I figured it out myself, I thought I should add what I found.

Using the 2.2 version of the plugin, I found that the only way I could get this to work was using the base name of the descriptor file (without the .xml extension).

For example if my descriptor file is foo.xml and the id within it is "bar", I found that this:

{code}
<descriptorRefs>
  <descriptorRef>foo</descriptorRef>
</descriptorRefs>
{code}

works, but this does not:

{code}
<descriptorRefs>
  <descriptorRef>bar</descriptorRef>
</descriptorRefs>
{code}


> 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
>            Assignee: John Casey
>             Fix For: 2.3
>
>
> 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