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
Please sign in to leave a comment.
Settings -> Maven -> Runner VM options should work fine.
What errors do you get? Check idea.log: https://intellij-support.jetbrains.com/hc/articles/207241085.
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
correction:
The Exception is similar as I run the mvn command from the command line without the
I see, please add the options here:
the exception is the same :(
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.
I'm sorry, I didn't get it.
there is a change in repositories
https://pastebin.com/raw/JapZdqKt
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.
What a magic? It works and I can build my project :)
thank you very much