Create a master password:
mvn -emp <your_master_password_to_generate_uniqe_passwords>
{generated_master_password}
Create a new settings-security.xml file in your .m2 directory and copy your generated password:
<settingsSecurity>
<master>{your generated password}</master>
</settingsSecurity>
After this you can generate uniqe passwords for your maven apps:
mvn -ep <your_uniqe_password>
{generated_password}
Generated password can be pasted to the settings.xml file:
<server>
<id>tomcat-server</id>
<username>user</username>
<password>generated-password</password>
</server>