git - 如何获得与 git 一起工作的 Maven 版本?

标签 git maven maven-release-plugin

试图释放,我总是得到这个:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The git-commit command failed.
Command output:

“命令输出”没有任何内容。

是否有一些 secret 的配置技巧可以让 maven 与 git 一起玩得很好?

最佳答案

我看到 git-commit 命令输出为空的唯一情况是在 issue 556 上,其中提出了以下解决方案:

I had exactly the same problem as you; and:

  • removing the release.properties and
  • putting back my pom version to a SNAPSHOT (it was previously changed by the plugin) version

resolved the problem; the process ended successfully.

关于git - 如何获得与 git 一起工作的 Maven 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5438710/

相关文章:

java - 如何在 Maven 发布准备更改 pom.xml 之前运行 Maven 执行器规则?

java - 将参数传递给 Maven 发布版本

git - npm 从裸 git 文件 repo 安装

git - 在 `git pull origin <remote-branch> : <local-branch>` 中使用冒号不会 pull 到正确的分支?

git - 为什么 git pull 之后会出现本地提交?

git - 使用网络共享作为 Visual Studio 2015 Git Remote

scala - 如何在scala中使用相对路径读取文本文件

Android Maven 插件 - 如何在部署后自动启动应用程序

java - 解决 NoClassDefFoundError

java - mvn 发布 :perform doesn't deploy release version