开发者

Copy war-file to remote server with pscp

I'm using Maven 3 and I want to copy the war-file after it was built to a remote destination. I'm on a WinXP-machine and have PuTTY with its tools installed, i.e. pscp.exe exists.

I read about maven-deploy-plugin, but that only seems to apply to sending something into a repository. The remote site has a Tomcat running and hasn't got anything to do with a repository. It should only run the web-app.

For a while I was using maven-resources-plugin to copy the war-file to a local destination, but that doesn't seem to be able to send something to a remote site.

Can anyone 开发者_如何学Cplease tell me what I can do? Maybe with a sample?


After wasting an entire day and trying various things like the ant-plugin and a wagon-thing I used the exec-maven-plugin. I simply call pscp.exe the plain ol' style.

Obviously it doesn't use any of the "fancy" stuff, but it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜