This section provides information in creating master passwords, encrypting master and server passwords, and keeping the password in the removable drive.
The password encryption feature provides the following:
Note: You can create the password through the command line interface for now.
To create a master password, follow these steps:
mvn --encrypt-master-password <password>
{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI7u+8EF1iFQyJQ=}
<settingsSecurity>
<master>{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}</master>
</settingsSecurity>
Note: Once you have created the master password, you can now start encrypting existing server passwords.
To encrypt server passwords, perform these steps:
mvn --encrypt-password <password>
{COQLCE6DU6GtcS5P=}
<settings>
...
<servers>
...
<server>
<id>my.server</id>
<username>foo</username>
<password>{COQLCE6DU6GtcS5P=}</password>
</server>
...
</servers>
...
</settings>
Note: You can add any information outside the password's curly brackets. For example:
<settings>
...
<servers>
...
<server>
<id>my.server</id>
<username>foo</username>
<password>Please reset this password {COQLCE6DU6GtcS5P=}</password>
</server>
...
</servers>
...
</settings>
You can now start deploying to the server without worrying about your password. All passwords are encrypted.
Perform these steps:
<settingsSecurity>
<master>{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}</master>
</settingsSecurity>
<settingsSecurity> <relocation>/[removable_drive_directory]/settings-security.xml</relocation> </settingsSecurity>
Note: Performing the procedure above assures you that encryption will only work when the removable drive is mounted.