install into a directory:
eg.
D:\app\maven\NEXUS.xxx.com_base64.cer
D:\app\maven\NEXUS.xxx.com_base64.jks
Change maven VM Options:
- File -> Settings
- “Build, Execution, Deployment” -> Build Tools
- Maven -> Importing -> VM options for importer
- Fill The below vm options
-Djavax.net.ssl.trustStore=D:\app\maven\NEXUS.xxx.com_base64.jks -Djavax.net.ssl.trustStorePassword=changeit -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
- Be careful the first option
-Djavax.net.ssl.trustStore
should be your cer location
Change setting :
You can find the setting.xml under root directory
- File -> Settings
- “Build, Execution, Deployment” -> Build Tools
- Maven -> User settings file