使用Maven版本时如何解决权限被拒绝(公钥)的问题 [英] how to resolve Permission denied (publickey) when maven release used
问题描述
我有此错误消息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare (default-cli) on project portail: Unable to
commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.
我不明白.我使用以下命令maven:
i dont understand. I use this command maven :
mvn release:prepare release:perform -DgenerateBackupPoms=false -Dtag=xxx-2.1-RC03 -DreleaseVersion=2.1-RC03 -DdevelopmentVersion=2.2-SNAPSHOT
我得到了一半的结果,因为我可以看到第一次按下 [maven-release-plugins]准备发布xxx-2.1.0-RC03
但我在连结上看不到工件2.1.0-RC03.
and i have the half of result because i can see the first push [maven-release-plugins] prepare release xxx-2.1.0-RC03
but i can not see the artifact 2.1.0-RC03 on my nexus.
如果我在同一项目的Jenkins上使用maven版本,构建将完全成功...
If i use maven release on Jenkins on same project the build will success fully...
推荐答案
根据所提供的信息,不可能为您提供确切的答案,但是我希望问题隐藏在某个地方:
Based on provided information it's not possible to give you the exact answer, but I'd expect that the problem lurks somewhere in:
- 詹金斯(Jenkins)工作联合,
- 项目的必要配置.
正如您在评论中所述,在这种情况下,后者是正确的.
As you stated in the comment, the latter is true in this case.
这篇关于使用Maven版本时如何解决权限被拒绝(公钥)的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!