IDEA中maven下载jar包困难,配置忽略SSL检查

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
如果报错如下:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.5.0 from/to alimaven (http://maven.aliyun.com/nexus/content/repositories/central/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
直接在控制台运行:mvn clean install -Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
本文介绍如何在IntelliJ IDEA中配置Maven,解决从阿里云Nexus下载jar包时遇到的SSL证书问题,通过设置-D参数绕过验证。遇到PKIX路径错误时,提供步骤进行解决。
703

被折叠的 条评论
为什么被折叠?



