What you could have is a separate project that uses some plugin to do this.
For example, you could use the Cargo plugin (
http://cargo.codehaus.org/Maven2+plugin) to undeploy and then deploy an app.
There are also lots of other server specific plugins.
You could even bind this plugin in your existing project to do the
deployment. However, I don't think you want to do that as most likely you
want the release and "deploy/install in prod environment" step to be
separate. So, put it in a separate project.

/Anders

On Wed, Nov 25, 2009 at 13:29, Ludwig Magnusson <[email protected]>wrote:

> Hi!
>
> We are developing a webapp which is packaged in a war-file. I wonder how we
> can use maven for releasing new versions to our actual server and our
> staging server.
>
> I have tested the deploy function and read about the release function but
> these seem to serve a different purpose than the one I'm after. They seem
> to
> be developed for the purpose of releasing jar-libraries into a repository
> where other users can download them (no big surprise really ;) ). But can
> they be modified for releasing my war-file directly into my web servers
> webapp folder?
>
>
>
> I'm also open for other best practices on releasing webapps.
>
> /Ludwig
>
>

Reply via email to