[ http://jira.codehaus.org/browse/MNG-576?page=comments#action_42774 ] 

John Casey commented on MNG-576:
--------------------------------

rough outline of my intended fix:

Requirements
------------------------
* plugins should provide new lifecycle mappings

Steps to Implement
------------------------
* add 1:N plugin:packaging mapping to maven-plugin-mapping model
* add support to maven-plugin-plugin to detect and add new packaging mappings 
to the plugins.xml mapping metadata
* add mapping of packaging->plugin to PluginMappingManager in 
maven-plugin-mapping
* add method getPluginComponent( Plugin, String role, String roleHint ) to 
PluginManager to enable LifecycleMapping lookup in the child container for the 
plugin
* rewire DefaultLifecycleExecutor to use the plugin manager and plugin mappings 
to find the lifecycle handler for a packaging

Plan of attack
-------------------------
1. Add <packagings/> to maven-plugin-mapping model
2. Add packaging->plugin mapping support to PluginMappingManager
3. Add LifecycleMapping detector to maven-plugin-plugin's 
GenerateUpdatedMappingMojo
4. Add PluginManager.getPluginComponent( Plugin, String, String ): Object
5. Change the code in DefaultLifecycleManager to utilize PluginMappingManager 
and PluginManager.getPluginComponent(..) rather than simply 
MavenSession.lookup( LifecycleMapping.ROLE, ..)

> Support of EAR lifecycle
> ------------------------
>
>          Key: MNG-576
>          URL: http://jira.codehaus.org/browse/MNG-576
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-plugins, maven-core
>     Versions: 2.0-alpha-3
>     Reporter: Stephane Nicoll
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: maven-core-ear-lifecycle.patch, maven-ear-lifecycle.patch
>
>
> The following patches integrates the ear plugin into a m2 lifecycle so that 
> m2 package / install / deploy / etc goals could be used with an 'ear' 
> packaging.
> First patch is to be applied on maven-core to register ear lifecycle
> Second patch is to be applied on maven-plugins/maven-ear-plugin to  add 
> support of generateApplicationXml flag which states whether application.xml 
> should be generated or not (default is true).
> This relates to MNG-563 where the original discussion took place.

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

Reply via email to