How do I undeploy a maven web application from Tomcat?
Author: Deron Eriksson
Description: This tutorial describes how to undeploy a maven web application from Tomcat using the maven tomcat plugin.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1) || Tomcat 6.0.14


Page:    1 2 3 >

In another tutorial, we saw how we could deploy a mavenSW web application project to tomcatSW using the tomcat maven plugin. The pom.xml tomcat-maven-plugin reference is shown here:

pom.xml tomcat-maven-plugin reference

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>tomcat-maven-plugin</artifactId>
				<configuration>
					<url>http://192.168.1.7:8080/manager</url>
					<server>mytomcat</server>
					<path>/mywebapp</path>
				</configuration>
			</plugin>

The server entry specifies a settings.xml "mytomcat" server entry that holds the username and password used to connect to the Tomcat Manager, the url of which is specified by the url element.

If you're using the tomcat maven plugin, you can undeploy your project via the following maven command:

mvn tomcat:undeploy

(Continued on page 2)

Page:    1 2 3 >