Maven deploy artifact war from repository to remote server

喜欢而已 提交于 2019-12-24 03:52:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!