[ http://jira.codehaus.org/browse/MNG-1916?page=comments#action_54818 ]
Brett Porter commented on MNG-1916: ----------------------------------- "it seems to me that this require quite a lot of changes to the code". This is correct. We should be discussing the problem, not the solution. I don't think programmatic addition of modules is the right answer. "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." So what you'd like to have is wildcarded <modules> ? > 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 > Type: Improvement > Reporter: Nils Fredrik Gjerull > > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
