Ashish Sharma
Ashish Sharma

Reputation: 1196

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

Upvotes: 5

Views: 2513

Answers (3)

Eric J.
Eric J.

Reputation: 150238

+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.

Upvotes: 1

Pascal Thivent
Pascal Thivent

Reputation: 570615

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.

Upvotes: 3

Rich Seller
Rich Seller

Reputation: 84088

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.

Upvotes: 4

Related Questions