Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ### Steps to configure a local repository on Linux (Ex.: Nexus)
  2.  
  3. 1. If not exists, create a folder /home/user/.m2, and copy this settings.xml and settings-security.xml.
  4.  
  5. 2. Run the command for generate password for settings.xml:
  6.  
  7. ```mvn --encrypt-password <maven-local-repo-password>```
  8.  
  9. Copy the generated hash (with {}) and paste on settings.xml (/servers/server/password)
  10.  
  11. 3. Run the command for generate password to settings-security.xml:
  12.  
  13. ```mvn --encrypt-master-password <maven-local-repo-password>```
  14.  
  15. Copy the generated hash (with {}) and paste on settings-security.xml (/settingsSecurity/master)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement