小编Leo*_*CBS的帖子

使用maven + gitflow发布

我正在使用Maven + gitflow来生成我的应用程序的版本,但是当我尝试启动版本时,我遇到了一个错误.

命令开始发布:

mvn jgitflow:release-start
Run Code Online (Sandbox Code Playgroud)

错误:

Caused by: org.eclipse.jgit.errors.UnsupportedCredentialItem:
ssh://git@127.0.0.1:10022: The authenticity of host '127.0.0.1' can't be established.
RSA key fingerprint is 7e:03:51:7b:55:a5:cd:de:4c:7a:0d:1b:43:75:08:68.
Are you sure you want to continue connecting?
      at  com.atlassian.maven.plugins.jgitflow.util.ConsoleCredentialsProvider.get(ConsoleCredentialsProvider.java:71)
Run Code Online (Sandbox Code Playgroud)

如果我更改git url以使用HTTP协议,则构建完成并成功,错误仅出现在ssh协议中.

ps:我已经通过公钥/私钥克隆了我的存储库.

git ssh release maven git-flow

6
推荐指数
1
解决办法
1724
查看次数

标签 统计

git ×1

git-flow ×1

maven ×1

release ×1

ssh ×1