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

Jeff Campbell commented on MASSEMBLY-516:
-----------------------------------------

It is also important to note that the descriptor xml file MUST be in 
/src/main/resources/assemblies (not /src/main/resources/assembly).

It seems that half the maven-assembly-plugin documentation indicates that 
assembly xml files should go in either:
/src/main/resources/assembly
or
/src/main/resources/assemblies

I wish there was a better defined standard and that the documentation would be 
consistent.  It might be good to add to this fix the ability to look in either 
of these to paths for the descriptor xml file.

> 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

        

Reply via email to