2

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.

G.yx
  • 623
  • 2
  • 6
  • 16
  • Did you also try to import the certificates according to the description in the 2nd answer in https://stackoverflow.com/questions/25911623/problems-using-maven-and-ssl-behind-proxy? –  Aug 30 '18 at 03:54
  • Thanks for your accurate answer, it work for me. I search the way to import the certificates in linux and succeed. Thanks. – G.yx Aug 30 '18 at 04:37

1 Answers1

1

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

G.yx
  • 623
  • 2
  • 6
  • 16
  • 1
    In my case all I had to do was to update Java. The cert was signed by let's encrypt, not loaded in Java 8u80, but in Java8u191 which I upgraded to ... Something to check before manually adding :) – Terje Andersen Jan 28 '19 at 12:37