This plugin provides goals that perform various tasks on your project's context once deployed on Tomcat:
These are described in more detail below.
The goals required to redeploy a WAR project depend upon how it was deployed:
mvn package tomcat6/7:redeploy
mvn war:exploded tomcat6/7:redeploy
mvn war:inplace tomcat6/7:redeploy
Note: Depending on the docBase specified in the context.xml you may also need to call war:exploded or war:inplace as above.
To undeploy a WAR from Tomcat you can type:
To start a WAR in Tomcat you can type:
To stop a WAR in Tomcat you can type:
To list the session statistics for a deployed WAR project you can type: