[ http://jira.codehaus.org/browse/MNG-1310?page=comments#action_50372 ]
Jerome Lacoste commented on MNG-1310: ------------------------------------- I reran my build by disabling my patch to this issue and here's the results. By keeping the assembly.getId(), the artifacts get deployed as name-version-assemblyId.format In my case I first reuse the assembly plugin to repackage a war file into a full war file (bundle some webstart applications in it). I then bundle this full war into a zip file with a J2EE container for easy deployment, once again using the assembly plugin in a different project. My second assembly configuration looks like the following: (deploying the artifact as name-version.war and not name-version-main.war makes it easy to reference it like that) <assembly> <id>main</id> <formats> <format>zip</format> </formats> .... <dependencySets> .... <dependencySet> <outputDirectory>jakarta-tomcat-5.5.9/webapps/xxxx/</outputDirectory> <includes> <include>no.bbc.xxxx:full-webapp</include> </includes> <unpack>true</unpack> <scope>runtime</scope> </dependencySet> </dependencySets> As I am reusing this artifact inside another assembly, the fact that I am using the classifier makes it harder to reference it from within the other assembly plugin. I haven't foud a way yet to make the <include> work when there's a classifier in the dependency name. Maybe that's just a limitation of the assembly plugin? Comments appreciated. > Support installation of > ------------------------ > > Key: MNG-1310 > URL: http://jira.codehaus.org/browse/MNG-1310 > Project: Maven 2 > Type: New Feature > Components: maven-assembly-plugin > Versions: 2.0 > Reporter: Jerome Lacoste > Assignee: John Casey > Attachments: MNG-1310.diff > > Original Estimate: 1 hour > Remaining: 1 hour > > What about adding a <install>true</install> to the config to install all > produced artifacts (as AttachedArtifacts) ? > Feel free to also review MNG-1251 as I will probably use it for > implementation. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]