You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alex Reina <al...@gmail.com> on 2008/05/22 19:08:39 UTC

Problem with tagging in maven-release-plugin

Hi all,

I have a multi-module project that I'm trying to run the release plugin against.
scm connections are configured in the POMs and so is the tagBase.
Checkin of POMs with updated release numbers works, but the tagging
fails...
Strangely enough, I get prompted for the new release and development
numbers for all modules BUT I am only ever asked about the tag for the
root POM file.

Here's a excerpt:

[INFO] Checking in modified POMs...
[INFO] Executing: svn --non-interactive commit --file
/tmp/maven-scm-361988603.commit --targets /tmp/maven-scm-4489-targets
[INFO] Working directory: /home/build/release-0.5-4/(project name withheld)
[INFO] Tagging release with the label (project name)-0.5...
[INFO] Executing: svn --non-interactive copy --file
/tmp/maven-scm-1858598810.commit . svn+ssh://(URL)/svn/repos/(project
name withheld)/tags/(project name withheld)-0.5
[INFO] Working directory: /home/build/release-0.5-4/(project name withheld)

then I'm prompted for a password, even though I know the user
credentials are fine and the commit just succeded...

build@(URL)'s password:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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.MojoFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Connection closed unexpectedly

        at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:144)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 35 seconds
[INFO] Finished at: Thu May 22 19:08:23 CEST 2008
[INFO] Final Memory: 19M/296M
[INFO] ------------------------------------------------------------------------


I've tried many different things... half my kingdom for a good pointer!

Many thanks in advance

-- 
Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org