最近用idea创建maven web 项目 死活创建不出来 报的错是:maven PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path 在网上找了很多都是关于maven远程库的修改 我修改了 阿里的库 还是没有起到作用 最后在 https://stackoverflow.com 找到解决方案。https://stackoverflow.com/questions/23904298/pkix-path-building-failed
在idea如下配置
-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
然后重新创建项目 然后就成功了。