Reputation: 193
I just installed centOS7 and trying to package on of my Java Maven projects
I do a
mvn package
and I get the following error.. can someone please tell me how to find it
[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]
Upvotes: 0
Views: 1034
Reputation: 363
I'm running Ubuntu 15 without a proxy, and also hit this issue. The answer was in a certificate issue I found at
maven-with-ubuntu-15-10-getting-errors-with-mvn-clean-install
From that other post, you want to run;
update-ca-certificates -f
Upvotes: 0
Reputation: 11
Guess you are behind a proxy. If so, Maven needs your proxy configured in its settings file (settings.xml) of the local maven repo that you are using.
If that doesn't work, dump your maven local repository and force it to re-download all its dependencies.
Upvotes: 1