[ https://jira.codehaus.org/browse/MREACTOR-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=343242#comment-343242 ]
JC Carrillo edited comment on MREACTOR-22 at 3/19/14 7:54 AM: -------------------------------------------------------------- Problem lies on the the maven-invoker api which still uses the 2.2.1 cli commands: {code} -r,--reactor Dynamically build reactor from subdirectories {code} >From MavenCommandLineBuilder.java: {code} if ( request.isActivatedReactor() ) { cli.createArg().setValue( "-r" ); String[] includes = request.getActivatedReactorIncludes(); String[] excludes = request.getActivatedReactorExcludes(); if ( includes != null ) { cli.createArg().setValue( "-D" ); cli.createArg().setValue( "maven.reactor.includes=" + StringUtils.join( includes, "," ) ); } if ( excludes != null ) { cli.createArg().setValue( "-D" ); cli.createArg().setValue( "maven.reactor.excludes=" + StringUtils.join( excludes, "," ) ); } } {code} was (Author: jccarrillo): Problem lies on the the mave-invoker api which still uses the 2.2.1 cli commands: {code} -r,--reactor Dynamically build reactor from subdirectories {code} >From MavenCommandLineBuilder.java: {code} if ( request.isActivatedReactor() ) { cli.createArg().setValue( "-r" ); String[] includes = request.getActivatedReactorIncludes(); String[] excludes = request.getActivatedReactorExcludes(); if ( includes != null ) { cli.createArg().setValue( "-D" ); cli.createArg().setValue( "maven.reactor.includes=" + StringUtils.join( includes, "," ) ); } if ( excludes != null ) { cli.createArg().setValue( "-D" ); cli.createArg().setValue( "maven.reactor.excludes=" + StringUtils.join( excludes, "," ) ); } } {code} > reactor:make invokes mvn with invalid -r option > ----------------------------------------------- > > Key: MREACTOR-22 > URL: https://jira.codehaus.org/browse/MREACTOR-22 > Project: Maven Reactor Plugin > Issue Type: Bug > Affects Versions: 1.0 > Environment: Ubuntu Oneiric, Maven 3.0.5 from source, Oracle java 1.6 > Reporter: Thibault Kruse > > This happened to me while trying to build a subset of fuse fabric: > {code} > git clone git://github.com/fusesource/fuse.git > cd fuse > mvn reactor:make -Dmake.folders=. > -Dmake.artifacts=org.fusesource.fabric:process-manager > ... > [INFO] Executing: /bin/sh -c cd /home/kruset/local/ubuntu-amd64/src/fuse && > /home/kruset/local/ubuntu-amd64/DIR/apache-maven-3.0.5/bin/mvn -B -N -r -D > maven.reactor.includes=process/pom.xml,process/process-launcher/pom.xml,insight/pom.xml,insight/insight-log-core/pom.xml,insight/insight-log/pom.xml,fab/pom.xml,common-util/pom.xml,fabric/pom.xml,fabric/fabric-linkedin-zookeeper/pom.xml,fabric/fabric-utils/pom.xml,fabric/fabric-zookeeper/pom.xml,fabric/fabric-scala/pom.xml,fabric/fabric-core/pom.xml,fabric/fabric-maven-proxy/pom.xml,fab/fab-core/pom.xml,fab/fab-osgi/pom.xml,process/samples/pom.xml,process/samples/process-sample-camel-spring/pom.xml,process/process-manager/pom.xml > install > Unable to parse command line options: Unrecognized option: -r > usage: mvn [options] [<goal(s)>] [<phase(s)>] > {code} > Note also that the documentation is inconsistent: > http://maven.apache.org/plugins/maven-reactor-plugin/ > The examples show reactor-make called with just one of -Dmake.folders, > -Dmake.artifacts, but if I try this, I get: > {code} > mvn reactor:make -Dmake.artifacts=org.fusesource.fabric:process-manager > The parameters 'folderList' for goal > org.apache.maven.plugins:maven-reactor-plugin:1.0:make are missing or invalid > {code} > {code} > mvn reactor:make -Dmake.folders=fabric > The parameters 'artifactList' for goal > org.apache.maven.plugins:maven-reactor-plugin:1.0:make are missing or invalid > {code} > Need a separate issue for that? -- This message was sent by Atlassian JIRA (v6.1.6#6162)