Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE

问题:
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

从翻译得到这bug是–证书的问题

解决办法:
在File → setting下的 Maven → Importing ,如下图,加一句话
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

该配置用于忽略ssl证书的验证,然后就可以开始下载了
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE
记得先把仓库里面之前拉下来文件先删掉,再在项目里面,右键,Maven→Reimport 重新下载
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE
然后等待。
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE