小知识:idea pom下载jar报错:maven PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path

原来在公司下载私服没太在意maven的仓库设置,在家办公时,发现idea里的pom依赖下载不了。

通过如下配置,问题解决:

idea->file->settings->build->build tool->maven->runner->vm options添加如下参数
-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true

猜你喜欢

转载自www.cnblogs.com/chongpf/p/12380274.html