【问题标题】:Release with maven + gitflow使用 maven + gitflow 发布
【发布时间】:2015-05-04 08:51:52
【问题描述】:

我正在使用 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:我已经通过公钥/私钥克隆了我的存储库。

【问题讨论】:

    标签: git maven ssh release git-flow


    【解决方案1】:

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

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

    Host *
    StrictHostKeyChecking no
    

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

    【讨论】:

      猜你喜欢
      • 2020-03-23
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      • 1970-01-01
      • 2020-03-18
      • 1970-01-01
      • 2019-01-17
      • 2021-03-06
      相关资源
      最近更新 更多