首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Maven发布插件中的git-commit问题

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

Stack Overflow用户
提问于 2020-07-05 00:06:23
回答 1查看 419关注 0票数 0

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

我还像这样添加了.gitconfig

代码语言:javascript
运行
复制
[user]
    name = azizkhani
    email = aa.azizkhani@gmail.com
    username = aa.azizkhani
代码语言:javascript
运行
复制
[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
EN

回答 1

Stack Overflow用户

发布于 2020-07-20 23:51:12

maven发行版插件使用globale git config,因此您必须通过运行以下命令来设置globale user config

代码语言:javascript
运行
复制
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62731390

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档