Reading the deploy manual id like to specify a different port using
<sshArgs>-P 7221</sshArgs>
in the settings.xml
.
But I get a
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
(default-deploy) on project french-toast: Failed to retrieve remote metadata
com.foobar:french-toast:1.1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata
com.foobar:french-toast:1.1.0-SNAPSHOT/maven-metadata.xml from/to french-id
(scpexe://root@www.french.com/): Exit code: 1 - ssh: connect to host www.french.com
port 22: Connection refused -> [Help 1]
The port 22
is used.
How to change the port? What did I miss?