Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Maven Repository self signed certificate, ssl error

In intellij (15.0.4) under settings->Maven->Repositories I get an error when clicking update on the companies repositories.

org.apache.maven.wagon.TransferFailedException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I can understand, since it is a self-signed untrusted certificate, however, I have added this certificate to settings->Tools->Server Certificates->Accepted Certificates.

I also added to settings->Maven->Runner->VM Options -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.insecure=true

I still get this problem.

Greatful for a solution.

like image 612
Benno Avatar asked Jun 08 '16 09:06

Benno


People also ask

Why is IntelliJ not importing Maven dependencies?

If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.


1 Answers

Update both Maven Importer and Runner in settings to allow all.

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Runner

enter image description here

Importer

enter image description here

like image 65
Buru Avatar answered Sep 21 '22 09:09

Buru