搭建 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
搭建 spring cloud config 遇到的问题
终于搞定了。

那么问题来了,为啥我用不了https呢?