我已将所有插件设置为与 Maven
一起使用,但是当我尝试编译我的 Maven
项目时
使用以下命令
mvn clean install -Dmaven.test.skip=true
我在 cmd
中遇到以下错误
[ERROR] Error transferring file: sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException
:unable to find valid certification path to requested target
请帮我解决这个问题。
最佳答案
您需要将存储库的 HTTPS 证书导入 java keystore ,或者您可以信任所有证书。 看看这个How to tell Maven to disregard SSL errors (and trusting all certs)?
关于android - PKIX 路径构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23904298/