记录一次项目导包过程中,提示valid certification path的解决过程,希望能对您有所帮助。
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
一:设置maven的VM属性
在importing和Runner的vm options中,均需要配置如下参数
-Dmaven.resolver.transport=wagon -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
二:执行install操作
mvn clean install
切记,切记!!!不能只是reload,应该使用install,这样配置的参数才会在install阶段生效,笔者就犯了这个低级错误,导致走了很多弯路。
三:相关配置参数解析
可以参考昕希的这篇文章,写的相当精彩! www.cnblogs.com/bloodcoldin…