title: How to run maven web application with jetty server in eclipse
body: <p>I have to created maven project to run with jetty server this project is comfortably running using command line the same project if going to run in eclipse project getting build failure whats the problem </p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 6.910 s
  [INFO] Finished at: 2017-07-06T15:58:41+05:30
  [INFO] Final Memory: 11M/204M
  [INFO] ------------------------------------------------------------------------
  [ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\abc\.m2\repository), central (https://repo.maven.apache.org/maven2)] -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
  </code></pre>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.infonex.edunex&lt;/groupId&gt;
      &lt;artifactId&gt;school-managment-app&lt;/artifactId&gt;
      &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;name&gt;school-management&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;servlet.port&gt;8080&lt;/servlet.port&gt;
          &lt;jersey.version&gt;2.25.1&lt;/jersey.version&gt;
          &lt;struts2.version&gt;2.3.14.3&lt;/struts2.version&gt;
          &lt;spring.version&gt;3.1.0.RELEASE&lt;/spring.version&gt;
          &lt;hibernate.version&gt;4.1.0.Final&lt;/hibernate.version&gt;
          &lt;sl4j.version&gt;1.7.2&lt;/sl4j.version&gt;
          &lt;hsqldb.version&gt;2.2.9&lt;/hsqldb.version&gt;
          &lt;mysql.connector.java.version&gt;5.1.25&lt;/mysql.connector.java.version&gt;
      &lt;/properties&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;url&gt;https://repo.maven.apache.org/maven2&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;java.net&lt;/id&gt;
              &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
          &lt;/repository&gt;
  
          &lt;repository&gt;
              &lt;id&gt;wso2&lt;/id&gt;
              &lt;url&gt;http://dist.wso2.org/maven2&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
  
      &lt;dependencies&gt;
          &lt;!-- other dependencies--&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.owasp.esapi&lt;/groupId&gt;
              &lt;artifactId&gt;esapi&lt;/artifactId&gt;
              &lt;version&gt;2.1.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/captcha.simplecaptcha/simplecaptcha --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;captcha.simplecaptcha&lt;/groupId&gt;
              &lt;artifactId&gt;simplecaptcha&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.poi/poi --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.poi/poi-scratchpad --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-scratchpad&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml-schemas --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml-schemas&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.poi/poi-excelant --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-excelant&lt;/artifactId&gt;
              &lt;version&gt;3.11&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/org.jfree/jfreechart --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jfree&lt;/groupId&gt;
              &lt;artifactId&gt;jfreechart&lt;/artifactId&gt;
              &lt;version&gt;1.0.19&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/com.itextpdf/itextpdf --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.itextpdf&lt;/groupId&gt;
              &lt;artifactId&gt;itextpdf&lt;/artifactId&gt;
              &lt;version&gt;5.5.5&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;!-- end other dependencies --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-core&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-config-browser-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-junit-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-json-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-dojo-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-embeddedjsp-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-convention-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-jfreechart-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-tiles-plugin&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.apache.struts.xwork/xwork-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts.xwork&lt;/groupId&gt;
              &lt;artifactId&gt;xwork-core&lt;/artifactId&gt;
              &lt;version&gt;${struts2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;commons-logging&lt;/groupId&gt;
              &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.5&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
              &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
              &lt;version&gt;1.3&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;2.4&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
              &lt;version&gt;2.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;2.24.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spring 3 dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Struts 2 + Spring 3 need this jar, ContextLoaderListener --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;!-- Struts 2 + Spring integration plugins --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.struts&lt;/groupId&gt;
              &lt;artifactId&gt;struts2-spring-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.4&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Mockito --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;1.9.5&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Hibernate --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.javassist&lt;/groupId&gt;
              &lt;artifactId&gt;javassist&lt;/artifactId&gt;
              &lt;version&gt;3.17.1-GA&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;${mysql.connector.java.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;dom4j&lt;/groupId&gt;
              &lt;artifactId&gt;dom4j&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- h2 database --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;1.3.172&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.25&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jetty.orbit&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet&lt;/artifactId&gt;
              &lt;version&gt;3.0.0.v201112011016&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.eclipse.jetty.orbit&lt;/groupId&gt;
              &lt;artifactId&gt;javax.mail.glassfish&lt;/artifactId&gt;
              &lt;version&gt;1.4.1.v201005082020&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Jersey core Servlet 2.x implementation --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-container-servlet-core&lt;/artifactId&gt;
              &lt;version&gt;${jersey.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Jersey JSON Jackson (2.x) entity providers support module --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-media-json-jackson&lt;/artifactId&gt;
              &lt;version&gt;${jersey.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;1.5.6&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&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.8&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;additionalClasspathElements&gt;
                              &lt;additionalClasspathElement&gt;test/resources&lt;/additionalClasspathElement&gt;
                          &lt;/additionalClasspathElements&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.8&lt;/version&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
                      &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.4.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;configuration&gt;
                              &lt;properties&gt;
                                  &lt;cargo.servlet.port&gt;${servlet.port}&lt;/cargo.servlet.port&gt;
                              &lt;/properties&gt;
                          &lt;/configuration&gt;
                          &lt;deployables&gt;
                              &lt;!--
                                The project's artifact is automatically deployed if no deployable
                                is defined. However, we define it here so that we can specify the
                                context (we don't want the version to be included in the context).
                                --&gt;
                              &lt;deployable&gt;
                                  &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
                                  &lt;artifactId&gt;${project.artifactId}&lt;/artifactId&gt;
                                  &lt;type&gt;war&lt;/type&gt;
                                  &lt;properties&gt;
                                      &lt;context&gt;${project.artifactId}&lt;/context&gt;
                                  &lt;/properties&gt;
                              &lt;/deployable&gt;
                          &lt;/deployables&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;sql-maven-plugin&lt;/artifactId&gt;
  
                      &lt;dependencies&gt;
                          &lt;!-- specify the dependent jdbc driver here --&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;mysql&lt;/groupId&gt;
                              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
                              &lt;version&gt;${mysql.connector.java.version}&lt;/version&gt;
                          &lt;/dependency&gt;
                      &lt;/dependencies&gt;
  
                      &lt;configuration&gt;
                          &lt;driver&gt;org.gjt.mm.mysql.Driver&lt;/driver&gt;
                          &lt;url&gt;jdbc:mysql://localhost/cookbook&lt;/url&gt;
                          &lt;username&gt;root&lt;/username&gt;
                          &lt;password&gt;root&lt;/password&gt;
                          &lt;srcFiles&gt;
                            &lt;srcFile&gt;src/test/resources/schema.sql&lt;/srcFile&gt;
                            &lt;srcFile&gt;src/test/resources/test-data.sql&lt;/srcFile&gt;
                          &lt;/srcFiles&gt;
                          &lt;!--all executions are ignored if -Dmaven.test.skip=true--&gt;
                          &lt;skip&gt;${maven.test.skip}&lt;/skip&gt;
  
                      &lt;/configuration&gt;
  
                      &lt;executions&gt;
  
                          &lt;!--  It creates integration test data before running the tests --&gt;
                          &lt;execution&gt;
                              &lt;id&gt;create-integration-test-data&lt;/id&gt;
                              &lt;phase&gt;process-test-resources&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;execute&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;orderFile&gt;ascending&lt;/orderFile&gt;
                                  &lt;fileset&gt;
                                      &lt;basedir&gt;/&lt;/basedir&gt;
                                      &lt;includes&gt;
                                          &lt;include&gt;schema.sql&lt;/include&gt;
                                          &lt;include&gt;test-data.sql&lt;/include&gt;
                                      &lt;/includes&gt;
                                  &lt;/fileset&gt;
                              &lt;/configuration&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-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.6.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;1.7&lt;/source&gt;
                          &lt;target&gt;1.7&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;!-- &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
                  &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;8.1.2.v20120308&lt;/version&gt; --&gt;
                  &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
    &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;9.4.6-SNAPSHOT&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;jettyXml&gt;src/main/resources/jetty/jetty.xml&lt;/jettyXml&gt;
                      &lt;stopKey/&gt;
                      &lt;stopPort/&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;perform-integration&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;integration-test&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;systemProperties&gt;
                                  &lt;property&gt;
                                      &lt;name&gt;servlet.port&lt;/name&gt;
                                      &lt;value&gt;${servlet.port}&lt;/value&gt;
                                  &lt;/property&gt;
                              &lt;/systemProperties&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;verify-integration&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;verify&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.cargo&lt;/groupId&gt;
                  &lt;artifactId&gt;cargo-maven2-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;start-cargo&lt;/id&gt;
                          &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;start&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;stop-cargo&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;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>