Context Goals
The plugin provides goals to perform various tasks upon your project's context once deployed within Tomcat:
- Redeploying a WAR project
- Undeploying a WAR project
- Starting a WAR project
- Stopping a WAR project
- Listing session statistics
These are described in more detail below.
Redeploying a WAR project
The goals required to redeploy a WAR project depend upon how it was deployed:
- To redeploy a WAR project deployed by tomcat:deploy you can type:
mvn package tomcat6/7:redeploy
- To redeploy a WAR project deployed by tomcat:exploded you can type:
mvn war:exploded tomcat6/7:redeploy
- To redeploy a WAR project deployed by tomcat:inplace you can type:
mvn war:inplace tomcat6/7:redeploy
- To redeploy a context.xml file deployed by tomcat:deploy you can type:
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.
Listing session statistics
To list the session statistics for a deployed WAR project you can type:
mvn tomcat6:sessions