title: Run Jetty with jetty-maven-plugin and finish the build when jetty is running
body: <p>I want to Run Jetty with jetty-maven-plugin and finish the build when jetty is running.</p>
  
  <p>I created a <strong>pom.xml</strong> that starts jetty and deploying a war file,
  after the jetty starts I want maven to finish the build while leaving the jetty running, So that I could start another maven build to run tests on the server I just ran jetty on.</p>
  
  <p>Then I will create another maven build that just stops the jetty server.</p>
  
  <p>Problem is that I didn't managed to start jetty and make the maven build stop after that, Does anyone knows how to do that?</p>
  
  <p><strong>p.s</strong>
  I used "run-forked" for that, but it still waited for a stop signal so the build was stuck.</p>
  
  <p><strong><em>This is the jetty-start profile:</em></strong></p>
  
  <pre><code> &lt;profile&gt;
             &lt;id&gt;start-jetty&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
              &lt;/activation&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
                          &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
                          &lt;configuration&gt;
                              &lt;war&gt;${unpacked.war.directory}&lt;/war&gt;
                              &lt;contextXml&gt;${unpacked.war.directory}/WEB-INF/jetty-web.xml&lt;/contextXml&gt;
                              &lt;webApp&gt;
                                  &lt;contextPath&gt;/qabin&lt;/contextPath&gt;
                              &lt;/webApp&gt;
                              &lt;systemProperties&gt;
                                  &lt;systemProperty&gt;
                                      &lt;name&gt;mercy.td.sa_config_dir&lt;/name&gt;
                                      &lt;value&gt;${tests.runtime}&lt;/value&gt;
                                  &lt;/systemProperty&gt;
                                  &lt;systemProperty&gt;
                                      &lt;name&gt;jetty.port&lt;/name&gt;
                                      &lt;value&gt;${jetty.start.port}&lt;/value&gt;
                                  &lt;/systemProperty&gt;
                              &lt;/systemProperties&gt;
                              &lt;stopPort&gt;${jetty.stop.port}&lt;/stopPort&gt;
                              &lt;stopKey&gt;STOP&lt;/stopKey&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-forked&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;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
  </code></pre>