Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.5
-
None
-
None
-
Any environment.
Subversion v1.6.9
Tried default svn provider with tortoisevn for Windows, svnkit for Redhat or javasvn provider from Google.
Here is the plugin conf.:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<!--
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
-->
<scmCommentPrefix>MVN:0 :</scmCommentPrefix>
<remoteTagging>false</remoteTagging>
<suppressCommitBeforeTag>true</suppressCommitBeforeTag>
<username>my_svn_user</username>
<password>my_svn_pwd</password>
</configuration>
<!--
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
-->
</plugin>
Any environment. Subversion v1.6.9 Tried default svn provider with tortoisevn for Windows, svnkit for Redhat or javasvn provider from Google. Here is the plugin conf.: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5</version> <configuration> <!-- <providerImplementations> <svn>javasvn</svn> </providerImplementations> --> <scmCommentPrefix>MVN:0 :</scmCommentPrefix> <remoteTagging>false</remoteTagging> <suppressCommitBeforeTag>true</suppressCommitBeforeTag> <username>my_svn_user</username> <password>my_svn_pwd</password> </configuration> <!-- <dependencies> <dependency> <groupId>com.google.code.maven-scm-provider-svnjava</groupId> <artifactId>maven-scm-provider-svnjava</artifactId> <version>1.9</version> </dependency> </dependencies> --> </plugin>
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]