The maven-deploy-plugin module allows you to configure the deployment phase for deployment to the server using scp. The documentation has a page that describes how to do this.
I believe that this will replace the usual deployment instead of adding to it, so this may not be what you need.
If you need to deploy the traditional Maven repository and also deliver the file to a remote server, you will need to use the scp task, as other answers suggest.
In this answer, I described how to configure the ftp task, the scp task is almost identical, except that you may need to add the keyfile and passphrase attributes (and change the task name from ftp to scp, obviously).
Rich Seller Sep 10 '09 at 16:51 2009-09-10 16:51
source share