Maven-Mercurial/Svn-Svn/hg标记失败,退出代码为255

Maven-Mercurial/Svn-Svn/hg标记失败,退出代码为255,maven,mercurial,tags,exit,maven-scm-plugin,Maven,Mercurial,Tags,Exit,Maven Scm Plugin,我使用Mercurial(hg)作为我的源代码控制工具,使用Maven作为构建系统 在执行发布过程(使用版本maven plugin:versions:set-Dxxx=yyyy versions:use releases xxxxx yyy targets)时,我获得了有效的pom文件,可以在项目上执行有效的发布构建 现在,当发布构建成功后,下一步是提交更改的文件(按版本插件更改),我使用的是maven scm插件(scm:checkin和scm:tag)。由于我的源代码管理工具是Mercur

我使用Mercurial(hg)作为我的源代码控制工具,使用Maven作为构建系统

在执行发布过程(使用版本maven plugin:versions:set-Dxxx=yyyy versions:use releases xxxxx yyy targets)时,我获得了有效的pom文件,可以在项目上执行有效的发布构建

现在,当发布构建成功后,下一步是提交更改的文件(按版本插件更改),我使用的是maven scm插件(scm:checkin和scm:tag)。由于我的源代码管理工具是Mercurial/hg,scm:xxx操作将调用hg命令(而不是svn或任何其他工具-仅供参考)

我有
的有效设置。对于connection和developerConnection..
so scm:checkin按预期工作

但是在启动scm:tag时,我遇到了以下错误。知道我做错了什么吗

PS
1.相同的操作(scm:checkin和scm:tag)在其他项目中成功运行。
2.我不是在使用maven发布插件


问题在于hg/mercurial中已经存在标记(最近我在玩POC工作,并从命令行手动在hg中应用了0.0.1标记)

也就是说,可以将项目pom.xml文件中的版本#升级为使用较新的x.x.x-SNAPSHOT并发布该x.x.x(不是0.0.1)或hg克隆项目(或在SVN中签出)并运行以下操作(在我的示例中,标记是0.0.1):

在执行了上述命令之后,我确保标记在Hg(项目父项目的web浏览器)中消失,并在Jenkins中尝试发布升级过程(使用版本maven插件、maven scm插件、enforcer插件)。。。工作如期进行

16:05:52 [INFO] --- maven-scm-plugin:1.9.2:tag (default-cli) @ project-parent ---
16:05:52 [INFO] Final Tag Name: '0.0.1'
16:05:52 [INFO] EXECUTING: /bin/sh -c cd /production/jenkins/tools/workspace/ProjectTestApp && hg tag --message 'CM Jenkins - Release plugin auto check-in and creation of release tag = 0.0.1' 0.0.1

18:33:30 [ERROR] 
18:33:30 EXECUTION FAILED
18:33:30   Execution of cmd : tag failed with exit code: 255.
18:33:30   Working directory was: 
18:33:30     /production/jenkins/tools/workspace/ProjectTestApp
18:33:30   Your Hg installation seems to be valid and complete.
18:33:30     Hg version: 1.9.2 (OK)

16:05:52 [INFO] ------------------------------------------------------------------------
16:05:52 [INFO] BUILD FAILURE
16:05:52 [INFO] ------------------------------------------------------------------------
16:05:52 [INFO] Total time: 7.082 s
16:05:52 [INFO] Finished at: 2014-09-25T16:05:52-05:00
16:05:53 [INFO] Final Memory: 14M/360M
16:05:53 [INFO] ------------------------------------------------------------------------
16:05:53 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9.2:tag (default-cli) on project project-parent: Cannot run tag command : Exception while executing SCM command. Error while executing command tag --message 'CM Jenkins - Release plugin auto check-in and creation of release tag = 0.0.1' 0.0.1 -> [Help 1]
16:05:53 [ERROR] 
16:05:53 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
16:05:53 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
16:05:53 [ERROR] 
16:05:53 [ERROR] For more information about the errors and possible solutions, please read the following articles:
16:05:53 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
16:05:53 Archiving artifacts
16:05:54 Finished: FAILURE
hg tag --remove 0.0.1
hg push