搭建 spring cloud config 遇到的问题

将cloud config 的源码从github上拉起下来,然后进行package的时候始终不行
[ERROR] Failed to execute goal on project spring-cloud-config-client: Could not resolve dependencies for project org.springframework.cloud:spring-cloud-config-client:jar:2.0.0.BUILD-SNAPSHOT: Failed to collect dependencies at org.springframework.cloud:spring-cloud-test-support:jar:2.0.0.BUILD-SNAPSHOT: Failed to read artifact descriptor for org.springframework.cloud:spring-cloud-test-support:jar:2.0.0.BUILD-SNAPSHOT: Could not transfer artifact org.springframework.cloud:spring-cloud-test-support:pom:2.0.0.BUILD-SNAPSHOT from/to spring-snapshots ( https://repo.spring.io/libs-snapshot-local): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

一度在报 BUILD-SNAPSHOT相应的包在 https://repo.spring.io/libs-snapshot-local  上下载不了,然后去网站上面看了,又是有相应的包的
无奈之下,将一些包改为了 RELEASE并保持最新的( https://repo.spring.io/release/org/springframework/cloud/

但是问题还是来了 spring-cloud-test-support.jar 这个包在  RELEASE 上没有,我擦,上面的办法行不通了。
初步怀疑是 我的maven 无法下载snapshot包(难道我配置有问题?)
再认真看日志
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
难道是我环境证书的问题? 那换成http试试,把源改成 http://repo.spring.io/libs-snapshot-local

终于搞定了。

那么问题来了,为啥我用不了https呢?
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值