maven:encrypt-password
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | maven:encrypt-password [2019/01/06 13:16] – created odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Specify password in settings.xml ====== | ||
+ | |||
+ | To connect / deploy to a maven repository that requires a password: | ||
+ | | ||
+ | Create a master password in settings-security.xml file. Place this file in ~/.m2 folder. | ||
+ | To create the password: | ||
+ | mvn -emp mypassword | ||
+ | |||
+ | It will print: | ||
+ | {rsB56BJcqoEHZqEZ0R1VR4TIspmODx1Ln8/ | ||
+ | |||
+ | ~/ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Now, to encrypt a password using the master password: | ||
+ | |||
+ | mvn -ep qualityFIRST | ||
+ | |||
+ | {uMrbEOEf/ | ||
+ | |||
+ | Next, add this password to maven settings.xml file: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | | ||
maven/encrypt-password.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1