在虛擬環境,使用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,可行,打包成功。