(1) call mvn clean install on my project
(2) stop the Tomcat instance if already running
(3) after Tomcat is stopped, delete the war from its webapp directory
(4) copy the war file from the specific location of my project
(5) start Tomcat
I guess this is the task that is usually done by the scm guys. I would like to try this out by myself. Suggestions and ideas needed.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
I guess I asked about a Make script in Linux and not a maven plugin. Please read my post properly.
Joined: Mar 03, 2008
I assume your goal is deploying, redeploying, and undeploying Tomcat applications. The plugin is exactly what you needed. You could call all mvn command from Linux's shell script.
By the way you do not need start/stop Tomcat to deploy or undeploy an application.
Yes, you are right. My goal is just that but I also would like to combine this with starting, stopping and restarting Tomcat. From my previous experiences, I've seen the configuration management guys doing a make script or a shell script to automate this... be it Maven or Ant.