You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lars Corneliussen (JIRA)" <ji...@codehaus.org> on 2011/12/01 12:45:40 UTC
[jira] Created: (MASSEMBLY-585) Add support for
componentDescriptorRefs in Assemblies
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
[jira] (MASSEMBLY-585) Add support for loading components from the
plugin classloader
Posted by "Lars Corneliussen (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285647#comment-285647 ]
Lars Corneliussen commented on MASSEMBLY-585:
---------------------------------------------
Right. It does already work to load them, but now you'll need the full path.
> Add support for loading components from the plugin classloader
> --------------------------------------------------------------
>
> 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.
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
[jira] (MASSEMBLY-585) Add support for loading components from the
plugin classloader
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MASSEMBLY-585:
-----------------------------------
Summary: Add support for loading components from the plugin classloader (was: Add support for componentDescriptorRefs in Assemblies)
makes sense - is that what you meant?
> Add support for loading components from the plugin classloader
> --------------------------------------------------------------
>
> 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.
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
[jira] Commented: (MASSEMBLY-585) Add support for
componentDescriptorRefs in Assemblies
Posted by "Lars Corneliussen (JIRA)" <ji...@codehaus.org>.
[ 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