【问题标题】:Cannot make a maven build of spring-cloud-config无法制作 spring-cloud-config 的 Maven 构建
【发布时间】:2014-11-20 03:30:20
【问题描述】:

我正在尝试构建 spring-cloud-config 的 maven 版本。 JGitEnvironmentRepositoryTests 类中的所有测试都失败并出现以下异常堆栈跟踪:

java.lang.IllegalStateException: Cannot clone repository
.
.
Caused by: org.eclipse.jgit.api.errors.TransportException: juancarlos@localhost:/Users/juancarlos/Documents/eclipse/spring-cloud-config/spring-cloud-config-server/target/test-classes/config-repo: Connection refused

我的 SSH 密钥已在 .ssh 文件夹中正确配置,因为我已经使用 github 对其进行了测试并且工作正常。

【问题讨论】:

  • 您的 maven 的 settings.xml 是否已配置到您的存储库位置?
  • @VinayVeluri,你能解释一下你的问题吗? Maven 在我的机器上运行良好。该问题与用于在目标文件夹下进行测试的 git repo 有关。感谢您的帮助。

标签: java spring ssh spring-cloud


【解决方案1】:

在获得更多 SSH 专业知识的人的帮助后,问题如下:

未启用远程登录。这导致连接被拒绝异常。我在系统偏好设置中启用了它。

我的钥匙没有被授权。这导致了身份验证取消异常。我必须运行以下命令:

scp id_rsa.pub authorized_keys

在此之后,构建只会因为测试失败而抱怨,但这会报告给 spring-cloud 团队。

【讨论】:

    猜你喜欢
    • 2018-05-30
    • 2016-02-18
    • 2023-01-20
    • 2021-05-23
    • 2015-02-18
    • 2017-05-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多