解决mvn package遇到sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target报错问题

在虚拟环境,使用mvn package打包的时候,遇到了一下报错:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at wrong local POM

看到是证书验证报错,尝试忽略掉证书验证打包mvn -Dmaven.wagon.http.ssl.insecure=true package,可行,打包成功。

posted @ 2020-03-03 19:32  还可入梦  阅读(3704)  评论(0编辑  收藏  举报