Search code examples
mavenmaven-plugin

How to copy .war to Tomcat's webapps directory using Maven?


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?


Solution

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