Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven build deployment

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

like image 945
Ashish Sharma Avatar asked Oct 06 '09 19:10

Ashish Sharma


2 Answers

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.

like image 64
Rich Seller Avatar answered Sep 29 '22 12:09

Rich Seller


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.

like image 21
Pascal Thivent Avatar answered Sep 29 '22 13:09

Pascal Thivent