Although it is not fully reliable, what works for me is to use the maven-exec-plugin to directly invoke ssh/scp command. The issue is mainly that you cannot be sure that ssh or scp is installed on the computer maven is running on. But, in all likelyhood: * Linux: usually ssh/scp is installed (although it could be removed, I don't see that that often, not to say that I have never seen this)
* Mac: ssh/scp is always installed (to my knowledge at least)
* Windows: I always have cygwin installed and cygwin's bin directory is in the PATH env variable Making these assumptions, I find that this is quite reliable and really straightforward to use.

Cheers,
Guillaume

Le 15/12/2011 18:08, Tom Masterson a écrit :
So if I don't use the wagon plugin do you have a sugestion as to what I should use? I am not finding anything else out there when I do a google search.

Tom

On Thu, 15 Dec 2011, Benson Margulies wrote:

On Wed, Dec 14, 2011 at 6:26 PM, Tom Masterson <[email protected]> wrote:
We have several artifacts that we want to copy to remote servers via
scp/ssh. I have looked at the wagon plugin but the documentation seems to
have issues.

DO NOT try to use the Wagon plugin. It is *not* a tool for arbitrary
SCPs. It is only defined to work with Maven repos. You can sometimes
accidently get it to do what you want for something else, but that's
it.


 When I try to use it as documented I get an error telling me
it can't find a plugin descriptor for wagon-ssh.

Is there a good way to get maven to scp files to a remote server and where
can I find documentation on how to do this.

Thank
TOm

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to