title: Running Jetty using Maven before Integration Test
body: <p>I'm gonna create integration tests for REST API. So, I'd like to run Jetty before tests and stop it after tests. I've got Connection Refused Error for each Tests. My POM.XML's build section is written below:</p>
  
  <pre><code>    &lt;plugin&gt;
      &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jetty-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
      &lt;scanIntervalSeconds&gt;0&lt;/scanIntervalSeconds&gt;
      &lt;stopKey&gt;foo&lt;/stopKey&gt;
      &lt;stopPort&gt;9999&lt;/stopPort&gt;
      &lt;connectors&gt;
          &lt;connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"&gt;
          &lt;port&gt;8010&lt;/port&gt;
          &lt;maxIdleTime&gt;60000&lt;/maxIdleTime&gt;
          &lt;/connector&gt;
      &lt;/connectors&gt;
      &lt;contextPath&gt;/performance-parser-service&lt;/contextPath&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
              &lt;execution&gt;
                      &lt;id&gt;start-jetty&lt;/id&gt;
                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;run&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;scanintervalseconds&gt;0&lt;/scanintervalseconds&gt;    
                          &lt;daemon&gt;true&lt;/daemon&gt;
                      &lt;/configuration&gt;
              &lt;/execution&gt;
              &lt;execution&gt;
                      &lt;id&gt;stop-jetty&lt;/id&gt;
                      &lt;phase&gt;post-integration-test&lt;/phase&gt;
                      &lt;goals&gt;
                              &lt;goal&gt;stop&lt;/goal&gt;
                      &lt;/goals&gt;
              &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.16&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;performance-parser-service-it&lt;/id&gt;
              &lt;phase&gt;integration-test&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;test&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;skip&gt;false&lt;/skip&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Could you help me for solving this issue?</p>
  
  <p>Best Regards,</p>