Maven SSL switch off

Answered

I can't get dependencies using Maven from our Nexis repository. 

It works fine when I am usesing the mvn in command line with settings:

mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true 

 

I tried to

  • set this setitngs to Settings -> Maven -> Runner VM options   
  • Settings -> Maven -> Runner ->set enviroment variables 
  • Settings -> Maven -> Runner -> set  properties
  • I set the settings -> tools -> Server Certificates to Accept not-truested certificates automatically

I tried to set it with and without dash before D and it all is ignored

 

 

 

 

 

 

9 comments

Settings -> Maven -> Runner VM options  should work fine.

What errors do you get? Check idea.log: https://intellij-support.jetbrains.com/hc/articles/207241085.

0

thank you for your response. The Exception is similar as I run the mvn command from the command line without the 

Maybe I'm doing a very stupid mistake. Here are some images

 

Settings

a strange error

as a maven goal it works

The log ist long:

https://pastebin.com/raw/Cccu6SsE

0

correction:

The Exception is similar as I run the mvn command from the command line without the 

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
0

I see, please add the options here:

0

the exception is the same :(

0

But you didn't add `-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true` options there. Your screenshot shows the same options as on mine which was intended to show the place where to add the options, not the actual options.

0

I'm sorry, I didn't get it.

 

there is a change in repositories

https://pastebin.com/raw/JapZdqKt

0

Try using the same JDK version that works for you in the command line outside of IntelliJ IDEA:

If it still doesn't work, install your self signed certificates into the JDK used to run Maven with keytool, see this comment for details.

0

What a magic? It works and I can build my project :)

thank you very much

0

Please sign in to leave a comment.