Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: maven-invoker-2.0.9
-
Fix Version/s: maven-invoker-2.0.10
-
Component/s: maven-invoker
-
Labels:None
-
Number of attachments :
Description
"mvn --reactor" will search subdirectories for pom.xml files and dynamically build a reactor using them. You can also specify includes/excludes directory with -Dmaven.reactor.includes and -Dmaven.reactor.excludes.
It would be nice to be able to use this with the Maven Invoker... but look at DefaultInvocationRequest. It has a method called "activateReactor":
public InvocationRequest activateReactor( String[] includes, String[] excludes ) { throw new UnsupportedOperationException( "Not implemented yet." ); }
It would be helpful if it were implemented.
Checked in a fix to maven-invoker revision 686017, so now the API supports it. The invoker-plugin already provides support for running included/excluded POMs, so I don't necessarily think it's worth adding the feature in at that level; somebody else can file that bug if anyone cares!