使用maven + gitflow发布

时间:2015-03-03 16:02:11

标签: git maven ssh release git-flow

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

开始发布的命令:

mvn jgitflow:release-start

错误:

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)

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

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

1 个答案:

答案 0 :(得分:3)

找到答案,在Ubuntu中禁用ssh检查

在〜/ .ssh / config中(如果此文件不存在,只需创建它):

Host *
StrictHostKeyChecking no

这将为您连接的所有主机关闭它。如果您只想将*应用于某些主机,则可以用主机名模式替换*。

相关问题