We created a new project POM (type war) with the real war as a dependency.
Setting the finalName accomplishes a rename (to strip the version number).
This also allows us to overlay a META-INF/context.xml to configure JNDI
stuff.

We call mvn package and then copy from a shell script.

But, as Subir mentioned, there are a lot of ways to do this.

On Wed, May 5, 2010 at 7:16 AM, <[email protected]> wrote:

> A.) Use .war as a dependency.
> B.) Then configure maven-dependency-plugin:unpack goal and in the
> configuration section give group, artifactid and version
> C.) Then configure cargo-maven2-plugin with container id as tomcat6x
> etc. See details here [1] and [2]
>
> [1] http://cargo.codehaus.org/Home
> [2] http://cargo.codehaus.org/Maven2+Plugin+Tips
>
> Subir
>
> -----Original Message-----
> From: rolf poo [mailto:[email protected]]
> Sent: Wednesday, May 05, 2010 4:23 PM
> To: [email protected]
> Subject: Retrieve .war from repository and store in filesystem
>
>
> Hi,
>
> I want to install my .war in the tomcat/webapps folder. I want to
> retrieve the .war from my maven repository and I don't find the right
> command to do that.
>
> Input parameters should be repository url, group, artifact id, version
> and it should store the file on disk.
>
> Please help!
>
> ropo
> --
> View this message in context:
> http://old.nabble.com/Retrieve-.war-from-repository-and-store-in-filesys
> tem-tp28459333p28459333.html<http://old.nabble.com/Retrieve-.war-from-repository-and-store-in-filesys%0Atem-tp28459333p28459333.html>
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to