You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mitch <eb...@gmail.com> on 2007/11/16 03:22:48 UTC

automate localhost deploy

Hello, I'm using maven2 (and the m2eclipse integration plugin) and am able
to use the deploy goal successfully to deploy to a remote repository.  But I
wonder what the easiest way is to automate my manual steps of deploying to
my localhost tomcat (including stopping and starting the container).  Any
idea how I could automate these steps?  The steps would be:

- stop tomcat
- delete old war and app in my tomcat/webapps
- rename the new war in my eclipse project /target dir
- deploy the new war from my eclipse project /target dir to my localhost
tomcat/webapps dir
- start tomcat

Thx for any help!

Re: automate localhost deploy

Posted by Henry Isidro <hi...@exist.com>.
Cargo would be your best bet...http://cargo.codehaus.org/

Cheers,
Henry

On 11/16/07, mitch <eb...@gmail.com> wrote:
>
> Hello, I'm using maven2 (and the m2eclipse integration plugin) and am able
> to use the deploy goal successfully to deploy to a remote repository.  But
> I
> wonder what the easiest way is to automate my manual steps of deploying to
> my localhost tomcat (including stopping and starting the container).  Any
> idea how I could automate these steps?  The steps would be:
>
> - stop tomcat
> - delete old war and app in my tomcat/webapps
> - rename the new war in my eclipse project /target dir
> - deploy the new war from my eclipse project /target dir to my localhost
> tomcat/webapps dir
> - start tomcat
>
> Thx for any help!
>