Maven settings-security.xml: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
If this file does not exist, or if it does not contain valid content, [[Maven_Command_Line_Options#-ep.2C_--encrypt-password|mvn --encrypt-password]] will fail. | If this file does not exist, or if it does not contain valid content, [[Maven_Command_Line_Options#-ep.2C_--encrypt-password|mvn --encrypt-password]] will fail. | ||
For details on how to use password-protected repositories, see: {{Internal|Maven_Repositories#Password-Protected_Repositories|Password-Protected Repositories}} |
Revision as of 03:02, 9 January 2018
Internal
Overview
A file that contains the master password used to encrypt remote repository credentials. The master password must be encrypted with:
mvn --encrypt-master-password
and the encrypted representation must be stored in ~<user>/.m2/settings-security.xml as follows:
<settingsSecurity>
<master>{...=}</master>
</settingsSecurity>
If this file does not exist, or if it does not contain valid content, mvn --encrypt-password will fail.
For details on how to use password-protected repositories, see: