I have since found out that the Maven SCM implementation for Perforce does not support the release:branch goal
Refer to http://docs.codehaus.org/display/SCM/SCM+Matrix This probably explains the error but would have been more helpful if the Maven documentation actually linked to this information -----Original Message----- From: Richard Chamberlain [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 17:18 To: Maven Users List Subject: RE: Perforce and release:branch goal I've run into this issue as well. Tried lots of configuration options to see if I work around it, but gave up in the end. -----Original Message----- From: Bracewell, Robert [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 12:42 To: [email protected] Subject: Perforce and release:branch goal Hi all, Investigating the use of the release:branch goal but running into issues. The error is listed below. I have to say that I have no issue using the release:prepare goal so everything seems to be in place with the SCM section of the pom. Does anyone use the release:branch goal in conjunction with Perforce? Any ideas/pointers appreciated Thanks, Robert [INFO] Branching release with the label 1.0.0... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An error is occurred in the branch process: No such command 'branch'. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An error is occurred in the branch process: No such command 'branch'. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor .java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycl eExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor. java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultL ifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleE xecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java :143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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: An error is occurred in the branch proces s: No such command 'branch'. at org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchRelease Mojo.java:134) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor .java:539) ... 16 more Caused by: org.apache.maven.shared.release.ReleaseExecutionException: An error is occurred in the br anch process: No such command 'branch'. at org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPh ase.java:93) at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultRele aseManager.java:3 61) at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultRele aseManager.java:3 32) at org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchRelease Mojo.java:130) ... 18 more Caused by: org.apache.maven.scm.NoSuchCommandScmException: No such command 'branch'. at org.apache.maven.scm.provider.AbstractScmProvider.branch(AbstractScmProv ider.java:187) at org.apache.maven.scm.provider.AbstractScmProvider.branch(AbstractScmProv ider.java:180) at org.apache.maven.shared.release.phase.ScmBranchPhase.execute(ScmBranchPh ase.java:88) ... 21 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue May 06 12:35:22 BST 2008 [INFO] Final Memory: 6M/12M [INFO] ------------------------------------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
