Maven deploy artifact war from repository to remot

2019-07-20 10:00发布

问题:

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:

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