【发布时间】: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