maven 服务密码加密
https://maven.apache.org/guides/mini/guide-encryption.html
maven Password Encryption
1.创建master密码
mvn --encrypt-master-password <password>
{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}
放入:${user.home}/.m2/settings-security.xml
像这样:
<settingsSecurity>
<master>{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}</master>
</settingsSecurity>
2.创建服务密码
mvn --encrypt-password <password>
{COQLCE6DU6GtcS5P=}
放入settings.xml
<settings>
...
<servers>
...
<server>
<id>my.server</id>
<username>foo</username>
<password>{COQLCE6DU6GtcS5P=}</password>
</server>
...
</servers>
...
</settings>