You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anthony Richir (JIRA)" <ji...@apache.org> on 2015/12/15 11:47:46 UTC
[jira] [Commented] (MRELEASE-934) "svn: Commit blocked by
pre-commit hook" but commit message is provided
[ https://issues.apache.org/jira/browse/MRELEASE-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15057837#comment-15057837 ]
Anthony Richir commented on MRELEASE-934:
-----------------------------------------
I found something in the configuration of the project.
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>1.6</version>
</dependency>
</dependencies>
<configuration>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
<branchBase>https://192.9.200.5/svn/CaradTarfacRT/carad-parent/BRANCHES</branchBase>
<tagBase>https://192.9.200.5/svn/CaradTarfacRT/carad-parent/TAGS</tagBase>
<scmCommentPrefix>TT 000000: Tagging release of project</scmCommentPrefix>
</configuration>
</plugin>
{code}
It's using maven-scm-provider-svnjava 1.6, I changed it to version 1.15 and the release is prepared and performed successfully.
So it's probably due to a svn repo version.
> "svn: Commit blocked by pre-commit hook" but commit message is provided
> -----------------------------------------------------------------------
>
> Key: MRELEASE-934
> URL: https://issues.apache.org/jira/browse/MRELEASE-934
> Project: Maven Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.5.3
> Reporter: Anthony Richir
>
> Trying to perform a release:prepare, build fails, complaining about the commit message. Here is the trace with debug activated :
> {code}
> ...
> [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
> {code}
> In release.properties, the scm.commentPrefix is :
> {code}
> scm.commentPrefix=TT 000000\: Tagging release of project
> {code}
> 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 ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)