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 tomcat6/7:redeploy
mvn war:exploded tomcat6/7:redeploy
mvn war:inplace tomcat6/7:redeploy
mvn 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 list the session statistics for a deployed WAR project you can type:
mvn tomcat6:sessions