This is quite straight forward and requires few elements to be configured in the pom.xml as follows.
1. Configure repository location of the wagon-git plugin.
synergian-repo https://raw.github.com/synergian/wagon-git/releases
2. Include the 'wagon-ssh' plugin extension configuration inside the 'build' element.
org.apache.maven.wagon wagon-ssh 2.8
3. Finally we need to include our ftp location using the 'distributionmanagement' element. During the build process artifacts will be uploaded in to following location.
mvn-ftp-server sftp://ftp.aravinda-sites.com/my-ftp-repo
In order to use SFTP protocol maven settings.xml need to be updated with the ftp server access keys. Here the 'id' defined in the repository should match with the server id.
mvn-ftp-server /Users/aravinda/.ssh/id_rsa passPhrase
Now you can execute,
'
mvn deploy
command to upload the artifacts.