Maven deploy artifact war from repository to remot

2019-07-20 09:02发布

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条回答
成全新的幸福
2楼-- · 2019-07-20 09:40

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

查看更多
登录 后发表回答