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
(Continued from page 1) To make things easy from EclipseSW, I created an Eclipse External Tool Configuration to perform a "tomcat:undeploy" goal on a selected project.
The external tool configuration is shown here: I selected the "mywebapp" project, which had been deployed to TomcatSW. I selected the "mvn tomcat~undeploy" external tool to execute "mvn tomcat:undeploy" on "mywebapp". The following console output was generated by the "mvn tomcat:undeploy". Console output from 'mvn tomcat:undeploy'[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'tomcat'. [INFO] ------------------------------------------------------------------------ [INFO] Building mywebapp Maven Webapp [INFO] task-segment: [tomcat:undeploy] [INFO] ------------------------------------------------------------------------ [INFO] [tomcat:undeploy] [INFO] Undeploying application at http://192.168.1.7:8080/mywebapp [INFO] OK - Undeployed application at context path /mywebapp [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Feb 06 17:48:58 PST 2008 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ A quick check of my Tomcat Manager shows that the "mywebapp" web application was indeed undeployed from Tomcat. (Continued on page 3) Related Tutorials:
|