[
https://issues.apache.org/jira/browse/MRELEASE-650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MRELEASE-650.
-----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> Perforce Client Where command prefixes a hyphen when returning source
> location on *nix
> --------------------------------------------------------------------------------------
>
> Key: MRELEASE-650
> URL: https://issues.apache.org/jira/browse/MRELEASE-650
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: branch
> Affects Versions: 2.2
> Environment: Linux, Perforce client, Anthill Pro
> Reporter: gary fry
> Attachments: PerforceWhereCommand.java, PerforceWhereCommandTest.java
>
>
> Performing the following command on a *nix box:
> {{mvn -X --batch-mode -DupdateBranchVersions=true
> -DuseArtifactIdforBranchTag=true -DbranchName=GARY release:clean
> release:branch}}
> Returns:
> {noformat}
> 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)
> {noformat}
> Attached a fix, based on 1.4 version of the maven-scm-provider-perforce
> artifact
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)