每次從github上下載下來的項(xiàng)目都報(bào)如下錯(cuò)誤
could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.5.RELEASE from/to nexus-aliyun (https://maven.aliyun.com/nexus/content/groups/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
在這里插入圖片描述
在Maven命令后加入?yún)?shù)“-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true”
在這里插入圖片描述
這樣設(shè)置可以跳過證書檢查,然后maven clean,compile,再install就可以解決這個(gè)問題了