解决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,可行,打包成功。