You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/27 19:53:56 UTC

[jira] Commented: (MNG-1916) Making it possible for plug-in to add modules to the reactor programatically

    [ http://jira.codehaus.org/browse/MNG-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204214#action_204214 ] 

Jason van Zyl commented on MNG-1916:
------------------------------------

You can use the same code the new site plugin is using in order to create your own plugin system for your particular domain.

> Making it possible for plug-in to add modules to the reactor programatically
> ----------------------------------------------------------------------------
>
>                 Key: MNG-1916
>                 URL: http://jira.codehaus.org/browse/MNG-1916
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Plugin API, Reactor and workspace
>            Reporter: Nils Fredrik Gjerull
>             Fix For: 3.x
>
>
> I would like to be able to specify a number of directories as plug-in directories, automatically discover every plug-in in those directories and include them in the reactor. As I understands it the reactor with it's modules ({{org.apache.maven.execution.ReactorManager}}) is created in {{org.apache.maven.DefaultMaven}}. If I understands this correctly maven plug-ins can't add projects to the reactor programatically.
> My proposition to solve this is to add a phase which will be executed after the pom.xml is parsed, but before the information stored in Model/MavenProject is used, and most importantly before the {{ReactorManager is created}}. Then you can add information to the MavenProject programatically, increasing the flexibility for plug-ins.
> I am not fluent in the maven2 code base, but it seems to me that this require quite a lot of changes to the code. As I understands it the life cycle starts after the {{ReactorManager}} is made, and therefore after the information in Model have started to be used.

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