Maven 发布插件。分支发布失败(+ 缺少分支名称的第一个字母)
Posted
技术标签:
【中文标题】Maven 发布插件。分支发布失败(+ 缺少分支名称的第一个字母)【英文标题】:Maven release plugin. branch release fails (+ missing first letter of branch name) 【发布时间】:2016-05-13 04:59:36 【问题描述】:已添加
如果我的分支是default,maven:prepare
成功完成。
/已添加
我在 Idea 中有 maven 项目。使用水银。 我创建了分支“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之前做deploy action吗?
【问题讨论】:
【参考方案1】:应该在 maven-scm-plugin 版本 1.9.5 中解决,但我没有运气使用它...https://issues.apache.org/jira/browse/SCM-682
【讨论】:
以上是关于Maven 发布插件。分支发布失败(+ 缺少分支名称的第一个字母)的主要内容,如果未能解决你的问题,请参考以下文章
通过 Maven 的单元测试,但通过 Cobertura 失败:“在分支目标 65 处期望堆栈图帧”