idea config: maven connect to https Nexus

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:

  1. File -> Settings
  2. “Build, Execution, Deployment” -> Build Tools
  3. Maven -> Importing -> VM options for importer
  4. 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
  1. 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

  1. File -> Settings
  2. “Build, Execution, Deployment” -> Build Tools
  3. Maven -> User settings file

Leave a Comment