Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.2
-
None
-
None
-
Linux, Perforce client, Anthill Pro
Description
Performing the following command on a *nix box:
mvn -X --batch-mode -DupdateBranchVersions=true -DuseArtifactIdforBranchTag=true -DbranchName=GARY release:clean release:branch
Returns:
DEBUG] Executing: /bin/sh -c p4 where /[censored]/Branch/pom.xml [DEBUG] -//depot/se/multi-module-test/pom.xml //com.xxx.multi.module_parent_HEAD_Branch-3936/pom.xml /[censored]/Branch/pom.xml [DEBUG] Actual POM location: -//depot/se/multi-module-test [INFO] The SCM location in your pom.xml (//depot/se/multi-module-test) is not equal to the depot location (-//depot/se/multi-module-test). This happens frequently with branches. Ignoring the SCM location. [DEBUG] Sending changelist: Change: new Description: [maven-release-plugin] prepare branch GARY Files: -//depot/se/multi-module-test/pom.xml -//depot/se/multi-module-test/versionless-module/pom.xml -//depot/se/multi-module-test/versioned-module/pom.xml [ERROR] CommandLineException Exit code: 1 - Error in change specification. Can't include file(s) not already opened. Open new files with p4 add, p4 edit, etc. Command line was:p4 -d /[censored]/Branch submit -i org.codehaus.plexus.util.cli.CommandLineException: Exit code: 1 - Error in change specification. Can't include file(s) not already opened. Open new files with p4 add, p4 edit, etc. Command line was:p4 -d /[censored]/Branch submit -i at org.apache.maven.scm.provider.perforce.command.checkin.PerforceCheckInCommand.executeCheckInCommand(PerforceCheckInCommand.java:88) at org.apache.maven.scm.command.checkin.AbstractCheckInCommand.executeCommand(AbstractCheckInCommand.java:53) at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) at org.apache.maven.scm.provider.perforce.PerforceScmProvider.checkin(PerforceScmProvider.java:186) at org.apache.maven.scm.provider.AbstractScmProvider.checkIn(AbstractScmProvider.java:356) at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.checkin(AbstractScmCommitPhase.java:159) at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.performCheckins(AbstractScmCommitPhase.java:148) at org.apache.maven.shared.release.phase.ScmCommitPreparationPhase.runLogic(ScmCommitPreparationPhase.java:75) at org.apache.maven.shared.release.phase.AbstractScmCommitPhase.execute(AbstractScmCommitPhase.java:79) at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:389) at org.apache.maven.shared.release.DefaultReleaseManager.branch(DefaultReleaseManager.java:360) at org.apache.maven.plugins.release.BranchReleaseMojo.execute(BranchReleaseMojo.java:235) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:597) 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)
Attached a fix, based on 1.4 version of the maven-scm-provider-perforce artifact