android - PKIX 路径构建失败

标签 android maven authentication

我已将所有插件设置为与 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/

相关文章:

android - 嵌套集的顺序动画

java - Maven 编译阶段和插件目标有什么区别?

c# - 在 Hangfire 中设置 JWT Bearer Token 授权/认证

android - 如何使用 RxAndroid 将流正确拆分为 4 个操作?

java - 从android按钮获取文本返回 ""

android - 位图大小大于宽度和高度

java - 从 Java 运行 AppleScript 时出现 "is not allowed for assistive access"错误

java - Maven 不会将本地依赖添加到目标 jar

unit-testing - 如何在 MVC 6 中 stub /模拟 AuthenticationManager?

mysql - 使用多个数据库和 http 身份验证配置 phpMyAdmin?