The plugin provides goals to perform various tasks upon your project's context once deployed within Tomcat:
These are described in more detail below.
The goals required to redeploy a WAR project depend upon how it was deployed:
mvn package tomcat:redeploy
mvn war:exploded tomcat:redeploy
mvn war:inplace tomcat: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: