[ 
https://jira.codehaus.org/browse/MRELEASE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=313959#comment-313959
 ] 

Erik Schepers commented on MRELEASE-787:
----------------------------------------

Retested with 2.4-SNAPSHOT (based on 
[r1411374|http://svn.apache.org/viewvc?rev=1411374&view=rev]).

The build still fails. Now there are 2 problems:

# The tag is created, but the {{release-pom.xml}} is not part of the tag
# Committing the next development version to trunk fails (see logging below)

{noformat}
[INFO] Modified POMs are not committed because suppressCommitBeforeTagOrBranch 
is set to false.
[INFO] Tagging release with the label democonsumer-parent-5.1.0...
[INFO] Executing: /bin/sh -c cd 
/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer && 
svn --non-interactive copy --file /tmp/maven-scm-247432815.commit . 
file:///work/tactbl2/di788/tmp/TESTREPO/tags/Demo/DemoConsumer/democonsumer-parent-5.1.0
[INFO] Working directory: 
/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer
[INFO] Transforming 'DemoConsumer (TP)'...
[INFO] Transforming 'Consumer (TS)'...
[INFO] Removing release POM for 'DemoConsumer (TP)'...
[INFO] Removing release POM for 'Consumer (TS)'...
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd 
/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer && 
svn --non-interactive commit --file /tmp/maven-scm-2116850369.commit --targets 
/tmp/maven-scm-8006235259427407667-targets
[INFO] Working directory: 
/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] DemoConsumer (TP) ................................. FAILURE [9.037s]
[INFO] Consumer (TS) ..................................... SUCCESS [0.013s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.701s
[INFO] Finished at: Tue Nov 20 09:34:26 CET 2012
[INFO] Final Memory: 34M/583M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.4-SNAPSHOT:prepare-with-pom 
(default-cli) on project democonsumer-parent: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: Commit failed (details follow):
[ERROR] svn: 
'/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer/release-pom.xml'
 is not under version control
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.4-SNAPSHOT:prepare-with-pom 
(default-cli) on project democonsumer-parent: Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: 
'/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer/release-pom.xml'
 is not under version control

        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: 
'/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer/release-pom.xml'
 is not under version control

        at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:285)
        at 
org.apache.maven.plugins.release.PrepareWithPomReleaseMojo.execute(PrepareWithPomReleaseMojo.java:47)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.shared.release.scm.ReleaseScmCommandException: 
Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: 
'/work/tactbl2/di788/tmp/checkoutTESTREPO/TESTREPO/trunk/Demo/DemoConsumer/release-pom.xml'
 is not under version control

        at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.checkin(AbstractScmCommitPhase.java:165)
        at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.performCheckins(AbstractScmCommitPhase.java:145)
        at 
org.apache.maven.shared.release.phase.ScmCommitDevelopmentPhase.runLogic(ScmCommitDevelopmentPhase.java:91)
        at 
org.apache.maven.shared.release.phase.AbstractScmCommitPhase.execute(AbstractScmCommitPhase.java:78)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:234)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:169)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:146)
        at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:107)
        at 
org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:277)
        ... 22 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{noformat}
                
> release:prepare-with-pom fails when suppressCommitBeforeTag is used (SVN)
> -------------------------------------------------------------------------
>
>                 Key: MRELEASE-787
>                 URL: https://jira.codehaus.org/browse/MRELEASE-787
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare-with-pom
>    Affects Versions: 2.2, 2.3.2
>         Environment: Subversion 1.6.12
>            Reporter: Brian Albers
>            Assignee: Robert Scholte
>             Fix For: 2.4
>
>         Attachments: MRELEASE-787.diff
>
>
> When running a prepare-with-pom goal, using the suppressCommitBeforeTag 
> option causes the removal of the release-pom.xml to fail.
> This is due to the fact that the SVN command to remove the release-pom won't 
> complete because the release-pom was never committed. The ultimate error is 
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare-with-pom
> (default-cli) on project com.example.project: Cannot remove release POMs from 
> SCM
> [ERROR] Provider message:
> [ERROR] The svn command failed.
> [ERROR] Command output:
> [ERROR] svn: Use --force to override this restriction
> [ERROR] svn: 'C:\code\release-pom.xml' has local modifications
> {code}
> When suppressCommitBeforeTag is not used, the SCM operations are:
> # Status
> # Add the release-pom.xml
> # (build)
> # Commit with release version
> # Copy (create the tag)
> # Remove the release-pom.xml
> # Commit with next development version
> When suppressCommitBeforeTag is used, step #4 is omitted, which causes step 
> #6 to fail with the supplied error. In both cases, the tag successfully has 
> the release-pom.xml included.
> Could the --force option be used to suppress the warning?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to