[ http://jira.codehaus.org/browse/MASSEMBLY-390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MASSEMBLY-390. -------------------------------- Resolution: Won't Fix Fix Version/s: 2.2-beta-6 Assignee: John Casey (was: Petar Tahchiev) you should be able to use <useProjectArtifact>false</useProjectArtifact> inside the dependencySet within the moduleSet/binaries to accomplish this. > No way to exclude moduleSet binary artifacts, while still including their > dependencies > -------------------------------------------------------------------------------------- > > Key: MASSEMBLY-390 > URL: http://jira.codehaus.org/browse/MASSEMBLY-390 > Project: Maven 2.x Assembly Plugin > Issue Type: Wish > Reporter: Ben Coughlan > Assignee: John Casey > Priority: Trivial > Fix For: 2.2-beta-6 > > Attachments: useModuleArtifact.patch > > > There is no way to exclude a moduleSet binary artifact without excluding all > of its dependencies. This is necessary when dependencies of different types > need to be sorted into different deployment directories, to prevent the > module artifacts being included everywhere. > The patch attached provides an example implementation of what I am thinking. > An example descriptor would be: > {code} > <assembly> > ... > <moduleSets> > <!-- All Non Jar dependencies --> > <moduleSet> > ... > <binaries> > <useModuleArtifact>false</useModuleArtifact> > <dependencySets> > <dependencySet> > <excludes> > <exclude>*:jar</exclude> > </excludes> > </dependencySet> > </dependencySets> > <outputDirectory>nonjars</outputDirectory> > </binaries> > </moduleSet> > <!-- All Jar dependencies --> > <moduleSet> > <binaries> > <useModuleArtifact>false</useModuleArtifact> > <dependencySets> > <dependencySet> > <includes> > <include>*:jar</include> > </includes> > </dependencySet> > </dependencySets> > <outputDirectory>jars</outputDirectory> > </binaries> > </moduleSet> > </moduleSets> > </assembly> > {code} -- 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