Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-886

scmCommentPrefix not used in tag Phase ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.5
    • None
    • prepare, scm, Subversion
    • None

    Description

      Our Subversion requires a particular format on commit comments (that is : "tool:number free text").

      While running the prepare goal, the plugin fails with a malformed comment.
      Since there is no debug log on the comment used (if any), I am not sure the scmCommentPrefix is used.

      According to source code of ScmTagPhase.java, the " copy for tag " + tagName is added to the prefix before calling the tag function which according to my plugin configuration should succeed, but it fails.

      Here is the log with javasvn provider:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project dmz_indus_util: Unable to tag SCM
      [ERROR] Provider message:
      [ERROR] SVN tag failed.
      [ERROR] Command output:
      [ERROR] svn: Commit failed (details follow):
      [ERROR] svn: Commit blocked by pre-commit hook (exit code 1) with output:
      [ERROR] Error: The comment is malformed. According to the Software Configuration Management procedure, the rule is <tool>:<ID> <free text>
      [ERROR] svn: MERGE of '/svn/svn57310/tags': 409 Conflict (...)
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project dmz_indus_util: Unable to tag SCM
      Provider message:
      SVN tag failed.
      Command output:
      svn: Commit failed (details follow):
      svn: Commit blocked by pre-commit hook (exit code 1) with output:
      Error: The comment is malformed. According to the Software Configuration Management procedure, the rule is <tool>:<ID> <free text>
      svn: MERGE of '/svn/svn57310/tags': 409 Conflict (...)
              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:320)
              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:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              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 tag SCM
      Provider message:
      SVN tag failed.
      Command output:
      svn: Commit failed (details follow):
      svn: Commit blocked by pre-commit hook (exit code 1) with output:
      Error: The comment is malformed. According to the Software Configuration Management procedure, the rule is <tool>:<ID> <free text>
      svn: MERGE of '/svn/svn57310/tags': 409 Conflict (...)
              at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:285)
              at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:232)
              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 tag SCM
      Provider message:
      SVN tag failed.
      Command output:
      svn: Commit failed (details follow):
      svn: Commit blocked by pre-commit hook (exit code 1) with output:
      Error: The comment is malformed. According to the Software Configuration Management procedure, the rule is <tool>:<ID> <free text>
      svn: MERGE of '/svn/svn57310/tags': 409 Conflict (http://baselinesvn.mc2.renault.fr:9090)
              at org.apache.maven.shared.release.phase.ScmTagPhase.execute(ScmTagPhase.java:136)
              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]
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            robinson13 Fred Chapuis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: