- Run “mvn” comment under cmd: generate .m2 file under current user
- Install the certificate of the company
- Copy “settings-security.xml” to .m2 under current user
Run: mvn –emp ******
Copy the encrypted password to <master></master> - Copy Setting.xml to .m2 under current user
Run: mvn –ep ******
Add following under <servers></servers>
Copy the encrypted password to <password></password> - Add following under <mirrors></mirrors>:
-<mirror>
<id>dsnexus</id>
<name>Local proxy of central repo</name>
<url>nexus URL</url>
<mirrorOf>central</mirrorOf>
</mirror>
Note: (1) the id must be same between <Server> and <Mirror>
(2) The value of <mirrorof> must be “central” of “*”