Maven发布插件。分支发布失败(+缺少分支名称的第一个字母)

时间:2016-05-13 04:59:37

标签: java maven intellij-idea mercurial maven-release-plugin

如果我的分支默认maven:prepare已成功完成。

/增加

我在Idea中有maven项目。使用mercurial。 我创建了分支" MAVEN_RELEASE "尝试使用maven-release-plugin发布它。并得到以下错误。请按照 hg push 行进行操作。问题的原因是 AVEN_RELEASE (没有第一个字母)?

[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 02:16 min
[INFO] [INFO] Finished at: 2016-05-12T17:53:53+06:00
[INFO] [INFO] Final Memory: 63M/216M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Checking in modified POMs...
[INFO] EXECUTING: cmd.exe /X /C "hg branch"
[INFO] EXECUTING: cmd.exe /X /C "hg outgoing"
[WARNING] A different branch than AVEN_RELEASE was found in outgoing changes, branch name was MAVEN_RELEASE. Only local branch named AVEN_RELEASE will be pushed.
[INFO] EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release sea-bni-1.0.5" C:\EA\IdeaProjects\sea-eclipse\pom.xml C:\EA\IdeaProjects\sea-eclipse\jnlp-apps\pom.xml C:\EA\IdeaProjects\sea-eclipse\jnlp-apps\arm-data-entry\pom.xml C:\EA\IdeaProjects\sea-eclipse\jnlp-apps\sea-print\pom.xml C:\EA\IdeaProjects\sea-eclipse\sea-web\pom.xml C:\EA\IdeaProjects\sea-eclipse\the-ear\pom.xml"
[INFO] EXECUTING: cmd.exe /X /C "hg push -rAVEN_RELEASE http://oksapp.bingo.ru/hg/sea-eclipse"
[ERROR] 
EXECUTION FAILED
  Execution of cmd : push failed with exit code: 255.
  Working directory was: 
    C:\EA\IdeaProjects\sea-eclipse
  Your Hg installation seems to be valid and complete.
    Hg version: 3.5.2 (OK)

第二个问题,请: 2)我应该在进行maven release prepeare之前部署动作,执行吗?

1 个答案:

答案 0 :(得分:0)

应该在maven-scm-plugin版本1.9.5中解决,但我没有运气使用它...... https://issues.apache.org/jira/browse/SCM-682