Deploy a WAR in-place to Tomcat.
Mojo Attributes:
| Name | Type | Description |
|---|---|---|
| charset | String |
The URL encoding charset to use when communicating with Tomcat manager. Default value is ISO-8859-1. |
| mode | String |
The deployment mode to use. This must be either war to
deploy the war, context to deploy the context XML file, or
both to deploy the war with the context XML file. Default value is war. |
| path | String |
The webapp context path to use when communicating with Tomcat manager. This must always start with a forward-slash ('/'). |
| update | boolean |
Whether Tomcat should automatically undeploy webapps that already exist
when deploying. Default value is false. |
| url | URL |
The full URL of the Tomcat manager instance to use. Default value is http://localhost:8080/manager. |
| warSourceDirectory | File |
The path of the inplace WAR directory to deploy. |
| Name | Type | Description |
|---|---|---|
| contextFile | File |
The path of the Tomcat context XML file. This is not used for war deployment mode. |
| server | String |
The server id in settings.xml to use when authenticating with Tomcat
manager, or null to use defaults of username
admin and no password. |
| tag | String |
The Tomcat webapp tag name to use. |
The URL encoding charset to use when communicating with Tomcat manager.
java.lang.StringYes${maven.tomcat.charset}ISO-8859-1java.io.FileNo${project.build.directory}/${project.build.finalName}/META-INF/context.xmlwar to
deploy the war, context to deploy the context XML file, or
both to deploy the war with the context XML file.
java.lang.StringYes${maven.tomcat.mode}warjava.lang.StringYes/${project.build.finalName}null to use defaults of username
admin and no password.
java.lang.StringNo${maven.tomcat.server}java.lang.StringNo${maven.tomcat.tag}booleanYes${maven.tomcat.update}falsejava.net.URLYes${maven.tomcat.url}http://localhost:8080/managerjava.io.FileYes${basedir}/src/main/webapp