[ https://jira.codehaus.org/browse/MASSEMBLY-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284676#comment-284676 ]
Lars Corneliussen commented on MASSEMBLY-585: --------------------------------------------- Looking at {{DefaultAssemblyReader.java}} it seems to make more sense, just to add {{locator.addStrategy( new PrefixedClasspathLocatorStrategy( "/assemblies/components/" ) ); }} in {{mergeComponentsWithMainAssembly}} *Please change the title accordingly* > Add support for componentDescriptorRefs in Assemblies > ----------------------------------------------------- > > Key: MASSEMBLY-585 > URL: https://jira.codehaus.org/browse/MASSEMBLY-585 > Project: Maven 2.x Assembly Plugin > Issue Type: New Feature > Reporter: Lars Corneliussen > > It would be great, if we could compose assembly descriptors from components > provided by dependencies. > This would help to apply favor composition over inheritance. > {code:title=Assembly Descriptor} > .. > <componentDescriptorRefs> > <!-- look for assemblies/components/bin.xml on the classpath --> > <componentDescriptorRef>bin</componentDescriptorRef> > </componentDescriptorRefs> > .. > {code} > ComponentDescriptors should override componentDescriptorRefs; hence be > applied later. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira