Idea uses maven to download the jar package, and a certificate verification problem occurs, unable to find valid certification path to requested target.

Every time the project is downloaded from github, the following error is reported:
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.
Insert image description here
Add the parameter "-Dmaven.wagon." after the Maven command. http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true"
Insert image description here
This setting can skip the certificate check, and then maven clean, compile, and install can solve this problem.

ps: *I found a very good check-in tool, just for paddling at work! Share with everyone:

Download link

Guess you like

Origin blog.csdn.net/xxaann/article/details/104794669