Page 1 of 1

Tomcat7 failed to shutdown

Posted: Fri Oct 05, 2012 1:44 am
by phuang3
Sorry, here might not be a right place to ask this kind of question, but I would like to know how you guys shutdown a tomcat7 instance on maven. The documentation only only shows an example of tomcat7:run-war but says nothing about tomcat7:shutdown. Why can't I shutdown a tomcat7 instance by the following setting?

Code: Select all

<target name="tomcat7-stop">
   <artifact:mvn mavenHome="${maven.home}" fork="true">
      <jvmarg value="-XX:MaxPermSize=256M" />
      <jvmarg value="-Xmx512M" />
      <arg value="tomcat7:shutdown"/>
   </artifact:mvn>
</target>

Re: Tomcat7 failed to shutdown

Posted: Fri Oct 05, 2012 10:38 am
by Valdus
The best way to execute the site with tomcat 7 and maven is with the command

Code: Select all

mvn:tomcat7 run

Then use ctrl+x to stop it. This is ran from the directory of the war you are trying to deploy.

Re: Tomcat7 failed to shutdown

Posted: Thu Aug 06, 2015 5:11 am
by Shanky
Hi,
Where do I need to write this command?