2

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

Jon
  • 59,288
  • 31
  • 123
  • 150
joshjdevl
  • 6,842
  • 12
  • 44
  • 57

1 Answers1

0

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

Robert Munteanu
  • 65,183
  • 33
  • 198
  • 275
  • 1
    From what I understand, the question is how to deploy to an app server a war that is in a Maven repository, not how to include a war in another project. Or could you precise your answer ? – Guillaume Aug 25 '11 at 08:42
  • @Guillaume: That's also my understanding of the question. You can found an answer here: http://stackoverflow.com/questions/8293741 – Thor Nov 28 '11 at 14:41