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