【发布时间】:2014-01-03 20:37:57
【问题描述】:
使用 git-1.8.5 时,使用 maven-release-plugin(使用 2.4.2 和 2.3.2 版本测试)和 mvn(使用 3.1.1 和 3.0.5 版本测试),运行 mvn release:prepare 和 @ 987654324@ 失败。
mvn release:prepare 未能创建它应该创建的提交:
[maven-release-plugin] 为下一次开发迭代做准备
[maven-release-plugin] 准备发布 foo-1.0.0
mvn release:prepare-with-pom 失败并出现 git 错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.2:prepare-with-pom (default-cli) on project foo: Cannot remove release POMs from SCM
[ERROR] Provider message:
[ERROR] The git command failed.
[ERROR] Command output:
[ERROR] error: the following file has changes staged in the index:
[ERROR] release-pom.xml
[ERROR] (use --cached to keep the file, or -f to force removal)
[ERROR] -> [Help 1]
[ERROR]
【问题讨论】: