如何使用Maven将.war复制到Tomcat的webapps目录?

如何使用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