views:

81

answers:

3

Hello,

I have to manually deploy my servlet war packages on an Apache tomcat instance running on an AWS (Amazon Web Services) machine (remote server).

Also i have Maven setup for dependency management and build packaging in local development environment.

What I want is to setup my maven install/deploy task such that my packaged war files are deployed and configured(i.e executing specific shell scripts) on the remote server automatically.

Is it possible ?

If yes!!

How can it be done? (Please suggest relevant references.)

Thanks in advance

Ashish

+1  A: 

Yes it is possible, you can use the cargo plugin to deploy to a server. See the Getting Started page for some examples.

If your scripts aren't catered for by the plugin, perhaps you could post some more details to see what options there are to address them.

Rich Seller
Yes Cargo can be used in my case, but i also need to deploy custom xml config files, launch one or more instances of applications (e.g. running open office in server mode etc), transfer and execute custom shell scripts on my currently running EC2 instance, can it be integrated with maven and how?
Ashish
I used cargo but i am unable to get it deploy past a proxy server.
Ashish
+1  A: 

If you are talking about Amazon's Elastic Computing Cloud (EC2), maybe you could check out cloudtools and its maven plugin (see the announcement on Chris Richardson's blog). Never tested myself though.

Pascal Thivent
+1 for the cloudtools plugin
Rich Seller
+1  A: 

+1 for cargo plugin, I was not aware of that but could use it myself.

In case it helps you or someone else, you can run any script upon launch of an instance. This blog describes how.

Eric J.