Maven是不工作的CentOS7 ..无法找到要求的目标

问题描述:

有效证书路径我刚刚安装centOS7并试图打包在我的Java的Maven项目Maven是不工作的CentOS7 ..无法找到要求的目标

我做了

mvn package 

和我得到以下错误..可以有人请告诉我如何找到它

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] 
[ERROR] 
+0

这是一个CA问题。您的密钥库没有构建该服务器提供的证书的信任链所需的证书。在线搜索应该找到任何数量的人在任何数量的网站都有这个问题,应该找到解决这个问题的指南(更重要的是指导您使用'keytool'工具,您将不得不使用这个工具,我发现这个工具非常可怕)。 – 2014-10-08 20:18:51

+0

[解决javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败错误?]的可能重复(http://stackoverflow.com/questions/9619030/resolving-javax-net-ssl-出现SSLHandshakeException-太阳安全验证,validatore) – 2014-10-08 20:20:23

猜你在一个代理。如果是这样,Maven需要在您正在使用的本地maven仓库的设置文件(settings.xml)中配置您的代理。

如果这不起作用,请转储您的maven本地存储库并强制它重新下载其所有依赖项。

我在没有代理的情况下运行Ubuntu 15,并且遇到了这个问题。答案是一个证书的问题,我发现在

maven-with-ubuntu-15-10-getting-errors-with-mvn-clean-install

从其他岗位,要运行;

update-ca-certificates -f