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

"svn: Commit blocked by pre-commit hook" but commit message is provided

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.5.3
    • None
    • prepare
    • None

    Description

      Trying to perform a release:prepare, build fails, complaining about the commit message. Here is the trace with debug activated :

      ...
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] BUILD SUCCESS
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] [INFO] Total time: 11.332s
      [INFO] [INFO] Finished at: Tue Dec 15 10:37:04 CET 2015
      [INFO] [INFO] Final Memory: 26M/442M
      [INFO] [INFO] ------------------------------------------------------------------------
      [INFO] Checking in modified POMs...
      [INFO] SVN commit directory: C:\dev\eclipse\workspace\carad-parent
      [INFO] Tagging release with the label carad-parent-0.0.1...
      [DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
      [DEBUG] ScmTagPhase :: scmTagParameters scmRevision 28400
      [DEBUG] ScmTagPhase :: fileSet  basedir = C:\dev\eclipse\workspace\carad-parent; files = []
      [INFO] SVN checkout directory: C:\dev\eclipse\workspace\carad-parent
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 19.057s
      [INFO] Finished at: Tue Dec 15 10:37:05 CET 2015
      [INFO] Final Memory: 8M/244M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project carad-parent: 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] A message is mandatory!
      [ERROR] The message must comply to the following structure 'TT 12345: Some explanation'.
      [ERROR] Pay attention to the white space between TT and the TT number and between the colon and the explanation.
      [ERROR] The explanation after the colon should at least be 10 characters long.
      [ERROR] svn: MERGE of '/svn/CaradTarfacRT/carad-parent': 409 Conflict (https://192.9.200.5)
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project carad-parent: 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:
      A message is mandatory!
      The message must comply to the following structure 'TT 12345: Some explanation'.
      Pay attention to the white space between TT and the TT number and between the colon and the explanation.
      The explanation after the colon should at least be 10 characters long.
      svn: MERGE of '/svn/CaradTarfacRT/carad-parent': 409 Conflict (https://192.9.200.5)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
              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:318)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
              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:414)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
      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:
      A message is mandatory!
      The message must comply to the following structure 'TT 12345: Some explanation'.
      Pay attention to the white space between TT and the TT number and between the colon and the explanation.
      The explanation after the colon should at least be 10 characters long.
      svn: MERGE of '/svn/CaradTarfacRT/carad-parent': 409 Conflict (https://192.9.200.5)
              at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:294)
              at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:240)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              ... 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:
      A message is mandatory!
      The message must comply to the following structure 'TT 12345: Some explanation'.
      Pay attention to the white space between TT and the TT number and between the colon and the explanation.
      The explanation after the colon should at least be 10 characters long.
      svn: MERGE of '/svn/CaradTarfacRT/carad-parent': 409 Conflict (https://192.9.200.5)
              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:286)
              ... 22 more
      [ERROR]
      [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
      

      In release.properties, the scm.commentPrefix is :

      scm.commentPrefix=TT 000000\: Tagging release of project
      

      I see in subversion that the release version has been well committed in the trunk with the commentPrefix, so what is wrong with the tagging ?

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            thonythony84 Anthony Richir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: