[ http://jira.codehaus.org/browse/MRELEASE-89?page=all ]
     
Brett Porter closed MRELEASE-89:
--------------------------------

     Resolution: Duplicate
    Fix Version:     (was: 2.0-beta-4)

it is fixed in 2.0-beta-4, which is not yet released. I'm working on it now.

> CLONE -release:prepare incorrectly Runtime.exec's m2 instead of mvn
> -------------------------------------------------------------------
>
>          Key: MRELEASE-89
>          URL: http://jira.codehaus.org/browse/MRELEASE-89
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>  Environment: Linux/x86_64, FC4, jdk 1.5.0_06-b05, mvn 2.0.2, release-plugin 
> 2.0-beta-3-SNAPSHOT
>     Reporter: Chad Boyd
>     Assignee: Brett Porter
>     Priority: Blocker

>
>
> I am using "mvn" because the "m2" shell script clearly says "THE m2 COMMMAND 
> IS DEPRECATED - PLEASE RUN mvn INSTEAD". Now, granted, I don't have 
> $M2_HOME/bin in my path, I am using update-alternatives to select the m2 
> version to use, but if it did not fork(!) off a M2 process using the 
> deprecated script name this wouldn't have happened.
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Can't run goal deploy
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:216)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Can't run goal 
> deploy
>       at 
> org.apache.maven.plugins.release.PerformReleaseMojo.runGoals(PerformReleaseMojo.java:151)
>       at 
> org.apache.maven.plugins.release.PerformReleaseMojo.executeTask(PerformReleaseMojo.java:77)
>       at 
> org.apache.maven.plugins.release.AbstractReleaseMojo.execute(AbstractReleaseMojo.java:73)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>       ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while 
> executing process.
>       at 
> org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:697)
>       at 
> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:74)
>       at 
> org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:60)
>       at 
> org.apache.maven.plugins.release.PerformReleaseMojo.runGoals(PerformReleaseMojo.java:142)
>       ... 20 more
> Caused by: java.io.IOException: java.io.IOException: m2: not found
>       at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>       at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>       at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>       at java.lang.Runtime.exec(Runtime.java:591)
>       at 
> org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:692)
>       ... 23 more

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

Reply via email to