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

Dennis Lundberg commented on MASSEMBLY-613:
-------------------------------------------

What are you trying to do?
What went wrong?
What did you expect to happen?

The page about shared descriptors talks about having a separate project for 
your shared descriptors. It is not a recipe you can follow if you have your 
assembly descriptor in the same project that is going to use the descriptor.
                
> assembly.xml in final build
> ---------------------------
>
>                 Key: MASSEMBLY-613
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-613
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>            Reporter: jacques
>
> See 
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
> It says:Your assembly descriptors MUST be in the directory 
> /src/main/resources/assemblies to be available to the Assembly Plugin.
> I did.
> I run "mvn clean package assembly:single"
> And now I have a assemblies.xml in my jar.
> here my assemblies file (pretty much default):
> {code:xml}
> <assembly 
> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     
> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
>  http://maven.apache.org/xsd/assembly-1.1.2.xsd";>
>   <id>final</id>
>   <includeBaseDirectory>true</includeBaseDirectory>
>   <formats>
>     <format>zip</format>
>   </formats>
>   <fileSets>
>     <fileSet>
>       <directory>${project.build.outputDirectory}</directory>
>       <outputDirectory>/</outputDirectory>
>     </fileSet>              
>   </fileSets>
>   <dependencySets>
>     <dependencySet>
>       <scope>runtime</scope>
>       <useProjectArtifact>true</useProjectArtifact>
>       <outputDirectory>/lib</outputDirectory>    
>     </dependencySet>
>   </dependencySets>
> </assembly>
> {code}

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