将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]
但是问题还是来了
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呢?