如何使用Maven将.war复制到Tomcat的webapps目录? [英] How to copy .war to Tomcat's webapps directory using Maven?

查看:131
本文介绍了如何使用Maven将.war复制到Tomcat的webapps目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以添加到pom.xml中,将生成的.war文件从target目录复制到Tomcat的webapps目录中?

Is there anything I can add to pom.xml that will copy the generated .war file from the target directory to my Tomcat's webapps directory?

推荐答案

我使用了Maven WAR插件: http://maven.apache.org/plugins/maven-war-plugin /usage.html

I used the Maven WAR Plugin: http://maven.apache.org/plugins/maven-war-plugin/usage.html

这篇关于如何使用Maven将.war复制到Tomcat的webapps目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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