简体   繁体   English

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

[英]git-commit problem in Maven release plugin

How can configure maven release plugin to set user.email??如何配置 maven 发布插件来设置 user.email?

I also add.gitconfig like this我也像这样添加.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

the maven release plugin use globale git config so you have to set globale user config as the error is saying by running maven 发布插件使用 globale git 配置,因此您必须设置 globale 用户配置,因为错误是通过运行

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM