问题
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.
来源:https://stackoverflow.com/questions/972993/maven-deploy-artifact-war-from-repository-to-remote-server