Maven 2.x Release Plugin

release:prepare should create the SVN tags parent dir if it doesn't already exist, rather than failing

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0-beta-8
  • Fix Version/s: None
  • Component/s: prepare
  • Labels:
    None
  • Number of attachments :
    0

Description

Currently, it fails with an error like the following:

[INFO] Tagging release with the label EmbJopr_1_1_0_GA...
[INFO] Executing: svn --non-interactive copy --file /tmp/maven-scm-280395749.commit . https://svn.jboss.org/repos/embjopr/tags/EmbJopr_1_1_0_GA
[INFO] Working directory: /home/test_jon/release/embjopr-trunk
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: PROPFIND request failed on '/repos/embjopr/tags'
svn: '/repos/embjopr/tags' path not found

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: PROPFIND request failed on '/repos/embjopr/tags'
svn: '/repos/embjopr/tags' path not found

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: PROPFIND request failed on '/repos/embjopr/tags'
svn: '/repos/embjopr/tags' path not found

at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:135)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 6 seconds
[INFO] Finished at: Tue Dec 23 18:02:20 EST 2008
[INFO] Final Memory: 16M/365M
[INFO] ------------------------------------------------------------------------

Activity

Hide
Boris Maras added a comment -

Is this bug related to MRELEASE-353 ?

Show
Boris Maras added a comment - Is this bug related to MRELEASE-353 ?
Hide
Ian Springer added a comment -

I don't think so. 353 has the error:

svn: Commit failed (details follow):
svn: Directory 'E:\projects\sweetdev-forge\trunk\maven-plugins\maven-header-plugin\src\main\java\com\ideo\sweetdevria' is missing"

whereas this one has the error:

svn: Commit failed (details follow):
svn: PROPFIND request failed on '/repos/embjopr/tags'
svn: '/repos/embjopr/tags' path not found".

Show
Ian Springer added a comment - I don't think so. 353 has the error: svn: Commit failed (details follow): svn: Directory 'E:\projects\sweetdev-forge\trunk\maven-plugins\maven-header-plugin\src\main\java\com\ideo\sweetdevria' is missing" whereas this one has the error: svn: Commit failed (details follow): svn: PROPFIND request failed on '/repos/embjopr/tags' svn: '/repos/embjopr/tags' path not found".
Hide
Matthew Morrissette added a comment -

I disagree that this is a bug. Most of the time when you get this error, it's because your tag directory was actually invalid (i.e. the pom was misconfigured). If change the functionality so that it will create the directory if it doesn't exist, there is no way to know if it was actually a problem or not. Maybe you could put a config flag in to the mvn release plugin that's something like "createParentDirectory" but I would certainly not change the default behavior.

Show
Matthew Morrissette added a comment - I disagree that this is a bug. Most of the time when you get this error, it's because your tag directory was actually invalid (i.e. the pom was misconfigured). If change the functionality so that it will create the directory if it doesn't exist, there is no way to know if it was actually a problem or not. Maybe you could put a config flag in to the mvn release plugin that's something like "createParentDirectory" but I would certainly not change the default behavior.

People

Vote (5)
Watch (8)

Dates

  • Created:
    Updated: