Maven settings-security.xml

From NovaOrdis Knowledge Base
Revision as of 04:51, 9 January 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>{tiJTx7Yed80HP6UZZShSFgNMhqfl3Xcaz5S8ewCRbiI=}</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:

Password-Protected Repositories