Maven:unable to find valid certification path to requested target

G.yx picture G.yx · Aug 30, 2018 · Viewed 12.3k times · Source

I get this error when I try to mvn clean install che-orion-editor,the version is 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]

I have set the maven proxy correctly.

And I have tried this, it doen't work.

Answer

G.yx picture G.yx · Aug 30, 2018

as @weizenkeim hugo said, I search the way to import the certificates in linux.

just two steps:

  • Get root certificate
  • Get that certificate added to java cacerts file

and the link is here