Maven从仓库部署工件战争到远程服务器 [英] Maven deploy artifact war from repository to remote server

查看:135
本文介绍了Maven从仓库部署工件战争到远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个构建过程,然后将我的战争上传到我们当地的Maven存储库。

I have a build process after which I upload my war to our local Maven repository.

当我们部署到TEST和PROD时,我想使用maven货插件,并指定要部署到这些环境的版本。如何配置我的pom(或者可能是一个叫做pom-deploy.xml的新pom)来从存储库中提取特定的战争并远程部署?

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

推荐答案

要在新项目中获取WAR文件,只需声明一个依赖关系。

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

这篇关于Maven从仓库部署工件战争到远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆