title: How to use a single command to build a maven project and deploy it in tomcat?
body: <p>I am new to Java and Springsource tool suite.</p>
  
  <p>Currently, I am running the following commands one after the other to deploy the project in tomcat.</p>
  
  <ul>
  <li>mvn clean package </li>
  <li>mvn tomcat:run</li>
  </ul>
  
  <p>In SpringSource tool suite, I use <code>Run as -&gt; maven Build</code> and first using the goal as <code>clean package</code>. Then I again use <code>Run as -&gt; maven Build</code> with goal as <code>tomcat:run</code>. </p>
  
  <p>Can these two command be done in a single execution?</p>
  
  <p>I was told that Linux allows such a process as mvn clean package;mvn tomcat:run</p>
  
  <p>Is there any way to replicate this in Windows?</p>
  
  <p>Every time I try this in windows I get the message showing that the program has started a thread that cannot be stopped.</p>