You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/02/09 23:41:47 UTC
[jira] Closed: (MRELEASE-80) release:prepare incorrectly
Runtime.exec's m2 instead of mvn
[ http://jira.codehaus.org/browse/MRELEASE-80?page=all ]
Brett Porter closed MRELEASE-80:
--------------------------------
Assign To: Brett Porter
Resolution: Fixed
Fix Version: 2.0-beta-4
this was fixed in SVN last october
> release:prepare incorrectly Runtime.exec's m2 instead of mvn
> ------------------------------------------------------------
>
> Key: MRELEASE-80
> URL: http://jira.codehaus.org/browse/MRELEASE-80
> 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: Matthew Daniel
> Assignee: Brett Porter
> Priority: Blocker
> Fix For: 2.0-beta-4
>
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org