How to manage credentials:
within Maven
mvn --encrypt-master-password <MasterPassword>
# or
mvn -emp <MasterPassword>
<settingsSecurity>
<master>The master password created above {jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}</master>
</settingsSecurity>
mvn --encrypt-password <Password>
# or
mvn --ep <Password>
And save it in the settings.xml file.
<settings>
...
<servers>
...
<server>
<id>my.server</id>
<username>foo</username>
<password>Oleg reset this password on 2009-03-11, expires on 2009-04-11 {COQLCE6DU6GtcS5P=}</password>
</server>
...
</servers>
...
</settings>
In the deploy phase, you distribute the artifacts (jar, site, …) on remote server (or repository). The repository id must then correspond to the server id
Example:
<distributionManagement>
<repository>
<id>my.server</id>
<name>Bytle Remote</name>
<url>scp://ftp.bytle.net:22</url>
</repository>
</distributionManagement>
[ERROR] Error executing Maven.
[ERROR] javax.crypto.BadPaddingException: Given final block not properly padded
[ERROR] Caused by: Given final block not properly padded
There is a lot of chance that your settings-security.xml file was not saved or is not correct.