java - Maven:无法找到请求目标的有效证书路径

标签 java maven ssl proxy eclipse-che

当我尝试 mvn clean install 时出现此错误 che-orion-editor ,版本是5.22.0。

Plugin org.apache.maven.plugins:maven-patch-plugin:1.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-patch-plugin:jar:1.1.1: Could not transfer artifact org.apache.maven.plugins:maven-patch-plugin:pom:1.1.1 from/to codenvy-public-repo (https://maven.codenvycorp.com/content/groups/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

我已经正确设置了 maven 代理。

我试过了this , 它不起作用。

最佳答案

正如@weizenkeim hugo所说,我搜索了在linux中导入证书的方法。

只需两步:

  • 获取根证书
  • 将该证书添加到 java cacerts 文件中

链接是here

关于java - Maven:无法找到请求目标的有效证书路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52088720/

相关文章:

java - IllegalArgumentException 阻止我启动 tomcat

logging - 如何将 Maven 输出记录到文件而不隐藏控制台?

maven - Teamcity 构建中未显示“报告”选项卡

.net - WCF JSON SSL 配置

java - spring-data-rest 集成测试因简单的 json 请求而失败

Java play路由传递复杂对象【Play框架2.0】

java - 多个volatile变量之间的同步

java - 在 Eclipse 中运行 Maven GWT 应用程序的问题

带代理的 SSL (https)

security - Http Post Encryption,Codeigniter enc 类?可能的?