You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "JC Carrillo (JIRA)" <ji...@codehaus.org> on 2014/03/19 13:18:59 UTC

[jira] (MREACTOR-22) reactor:make invokes mvn with invalid -r option

    [ https://jira.codehaus.org/browse/MREACTOR-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=343234#comment-343234 ] 

JC Carrillo commented on MREACTOR-22:
-------------------------------------

Getting a similar issue when running:
{code}
mvn reactor:make-scm-changes -Dmake.artifacts=groupId:artifactId -Dmake.folders=.
{code}

Output:
{code}
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T12:37:52-05:00)
Maven home: /usr/local/apache-maven
Java version: 1.7.0_21, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"
...
...
...
Unable to parse command line options: Unrecognized option: -r
...
...
...

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-reactor-plugin:1.0:make-scm-changes (default-cli) on project adam-main-assembler: Maven build failed: Exit code was 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-reactor-plugin:1.0:make-scm-changes (default-cli) on project adam-main-assembler: Maven build failed: Exit code was 1
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.reactor.SimpleInvoker$InvokerExecutionException: Maven build failed: Exit code was 1
	at org.apache.maven.plugin.reactor.SimpleInvoker.runReactor(SimpleInvoker.java:77)
	at org.apache.maven.plugin.reactor.MakeMojo.execute(MakeMojo.java:184)
	at org.apache.maven.plugin.reactor.MakeScmChanges.execute(MakeScmChanges.java:136)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 19 more
Caused by: org.apache.maven.plugin.reactor.SimpleInvoker$InvokerExecutionException: Exit code was 1
	at org.apache.maven.plugin.reactor.SimpleInvoker.runReactor(SimpleInvoker.java:73)
	... 23 more
{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)