gpt4 book ai didi

Maven 发布插件中的 git-commit 问题

转载 作者:行者123 更新时间:2023-12-05 05:01:24 25 4
gpt4 key购买 nike

如何配置maven发布插件来设置user.email??

我也像这样添加.gitconfig

[user]
name = azizkhani
email = aa.azizkhani@gmail.com
username = aa.azizkhani
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project wm: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR]
[ERROR] *** Please tell me who you are.
[ERROR]
[ERROR] Run
[ERROR]
[ERROR] git config --global user.email "you@example.com"
[ERROR] git config --global user.name "Your Name"
[ERROR]
[ERROR] to set your account's default identity.
[ERROR] Omit --global to set the identity only in this repository.
[ERROR]
[ERROR] fatal:********@runner-wefvk5ml-project-17780475-concurrent-0.(none)')
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

最佳答案

maven 发布插件使用全局 git 配置,所以你必须设置全局用户配置,因为运行时出现错误提示

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

关于Maven 发布插件中的 git-commit 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62731390/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com