- Download the
settings.xml
file from the nexus repo - Create a blank
settings.xml
file in theC:\Users\{loginid}\.m2
folder. - Encrypt your domain / AD password
- Create an encrypted master password by executing
- $ mvn --encrypt-master-password
Master password:(type your password here) on the command line.
Your password should look like{jOhnSnoWLives+jiuyrewhsidufsdjfks+9EF1iFQyJQ=}
- Update this password in the
settings-security.xml
file in theC:\Users\Redirection\{loginid}\.m2
folder. Make sure you are updating within the 'Redirection' folder and not elsewhere. - Create an encrypted password (different from the master password) by executing
- $ mvn --encrypt-password
Password: (type your password here) on the command line. - Update the
settings.xml
file. Paste in your user id and generated non-master password in the servers section at the bottom of the file.
More Details: http://maven.apache.org/guides/mini/guide-encryption.html
- Install VeriSign CA certificate to the default truststore
- Download verisignClass3secureServerCA
- Add the cert into your JVM - $JRE_HOME/lib/security/cacerts using the keyTool.exe utility
- Run below command as Admin
C:\Program Files\Java\jdk1.8.0_65\jre\lib\security>..\..\bin\keytool.exe -import
-trustcacerts -alias verisignClass3secureServerCA -file verisignClass3secureServerCA.cer -keystore cacerts
Enter keystore password:
Certificate was added to keystore
No comments:
Post a Comment