views:

703

answers:

1

Hi,

I have a build process after which I upload my war to our local Maven repository.

When we deploy to TEST and PROD, I would like to use maven cargo plugin and specify the version to deploy to these environments. How can I configure my pom ( or maybe a new pom called pom-deploy.xml) to pull a particular war from the repository and deploy it remotely?

Thanks

+1  A: 

To get the WAR file in your new project just declare a dependency for it.

Robert Munteanu