Maven – ignore SSL errors

Veröffentlicht von

IntelliJ and Maven, SSL errors.

In my company I am behind a firewall, which switches SSL certificates. This is often a problem, for example in Maven. I got the following error.

java.io.IOException: Transfer for nexus-maven-repository-index.properties failed
Caused by: java.lang.RuntimeException: org.apache.maven.wagon.TransferFailedException: Transfer failed for https://repo.maven.apache.org/maven2/.index/nexus-maven-repository-index.properties
Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

With the following parameters the errors can be ignored:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dhttps.protocols=TLSv1.2

In IntelliJ the parameters can be added in the settings:

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert