title: Starting of the Apache tomcat server before integration test
body: <p>I've been looking for an solution for the last 4 days and raised this question as a bounty but still not getting my answer.</p>
  
  <p>Where i've succeeded with the help pf pom.xml file:-
    a) Starting the tomcat server manually using command i.e mvn tomcat7:run. This command also
       help me deploying of my war file to tomcat server and starting the server.
    b) Running my integration tests using testng.xml file configuration on eclipse.</p>
  
  <p>Where i'm failed with the help pf pom.xml file:-</p>
  
  <p>a) Automatically starting of tomcat server.
     b) Running all the integration tests.
     c) Stopping of tomcat server.</p>
  
  <p>This question is posted by me but couldn't find the answer
      <a href="https://stackoverflow.com/questions/25308245/starting-apache-server-before-integration-testing-not-working">Starting apache server before integration testing not working</a></p>
  
  <p>Please help where i'm wrong.</p>