title: how to solve the dependency missing in eclipse by mvn?
body: <p>I get a java servlet project from github, it use mvn to compile ,and use jetty as the servlet container.Since I never used mvn ,so I get much problems/.</p>
  
  <p>question 1:
  When I run mvn install , it says "BUILD SUCCESS",but after I import this project into eclipse, many packages imported cannot be resolved by eclipse. Why ?It seems that when I run "mvn install",mvn has downloaded all dependencies for me. </p>
  
  <p>question 2:
  How to deploy my project to jetty and then run all jUnit test cases ?</p>
  
  <p>question 3:
  when I run "mvn jetty:run",it  says:</p>
  
  <pre><code>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 (/root/.m2/repository), central (http://repo.maven.apache.org/maven2)] -&gt; [Help 1]
  </code></pre>
  
  <p>Google says I should add jetty plugins to mvn configuration .But I am confused about the project.Why doesn't  the project developers add this to pom.xml?Or, there exist other solutions?</p>
  
  <p>below is the simple project directory.Project name is http-request.</p>
  
  <pre><code>[root@localhost http-request]# ls
  lib  pom.xml  README.md
  [root@localhost http-request]# cd lib
  [root@localhost lib]# ls
  pom.xml  src  target
  </code></pre>
  
  <p>pom.xml under http-request:</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.github.kevinsawicki&lt;/groupId&gt;
    &lt;artifactId&gt;http-request-parent&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;modules&gt;
      &lt;module&gt;lib&lt;/module&gt;
    &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>pom.xml under http-request/lib:</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;parent&gt;
      &lt;groupId&gt;org.sonatype.oss&lt;/groupId&gt;
      &lt;artifactId&gt;oss-parent&lt;/artifactId&gt;
      &lt;version&gt;7&lt;/version&gt;
    &lt;/parent&gt;
  
    &lt;groupId&gt;com.github.kevinsawicki&lt;/groupId&gt;
    &lt;artifactId&gt;http-request&lt;/artifactId&gt;
    &lt;version&gt;5.5-SNAPSHOT&lt;/version&gt;
    &lt;url&gt;https://github.com/kevinsawicki/http-request&lt;/url&gt;
    &lt;description&gt;Library for making HTTP requests&lt;/description&gt;
    &lt;inceptionYear&gt;2011&lt;/inceptionYear&gt;
  
    &lt;issueManagement&gt;
      &lt;url&gt;https://github.com/kevinsawicki/http-request/issues&lt;/url&gt;
      &lt;system&gt;GitHub Issues&lt;/system&gt;
    &lt;/issueManagement&gt;
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;jetty.version&gt;8.1.9.v20130131&lt;/jetty.version&gt;
    &lt;/properties&gt;
  
    &lt;licenses&gt;
      &lt;license&gt;
        &lt;name&gt;MIT License&lt;/name&gt;
        &lt;url&gt;http://www.opensource.org/licenses/mit-license.php&lt;/url&gt;
        &lt;distribution&gt;repo&lt;/distribution&gt;
      &lt;/license&gt;
    &lt;/licenses&gt;
  
    &lt;scm&gt;
      &lt;url&gt;https://github.com/kevinsawicki/http-request&lt;/url&gt;
      &lt;connection&gt;scm:git:git://github.com/kevinsawicki/http-request.git&lt;/connection&gt;
      &lt;developerConnection&gt;scm:git:git@github.com:kevinsawicki/http-request.git&lt;/developerConnection&gt;
    &lt;/scm&gt;
  
    &lt;developers&gt;
      &lt;developer&gt;
        &lt;email&gt;kevinsawicki@gmail.com&lt;/email&gt;
        &lt;name&gt;Kevin Sawicki&lt;/name&gt;
        &lt;url&gt;https://github.com/kevinsawicki&lt;/url&gt;
        &lt;id&gt;kevinsawicki&lt;/id&gt;
      &lt;/developer&gt;
    &lt;/developers&gt;
  
    &lt;build&gt;
      &lt;plugins&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;2.3.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.5&lt;/source&gt;
            &lt;target&gt;1.5&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;archive&gt;
              &lt;manifestFile&gt;${project.build.outputDirectory}/META-INF/MANIFEST.MF&lt;/manifestFile&gt;
            &lt;/archive&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
          &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.7&lt;/version&gt;
          &lt;extensions&gt;true&lt;/extensions&gt;
          &lt;configuration&gt;
            &lt;instructions&gt;
              &lt;Require-Bundle /&gt;
              &lt;Export-Package&gt;!.,com.github.kevinsawicki.http&lt;/Export-Package&gt;
              &lt;Bundle-RequiredExecutionEnvironment&gt;J2SE-1.5&lt;/Bundle-RequiredExecutionEnvironment&gt;
            &lt;/instructions&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;bundle-manifest&lt;/id&gt;
              &lt;phase&gt;process-classes&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;manifest&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-javadoc-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.8&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;jar&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-source-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.1.2&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;jar&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;com.github.github&lt;/groupId&gt;
          &lt;artifactId&gt;site-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.8&lt;/version&gt;
          &lt;configuration&gt;
            &lt;message&gt;Generated site for ${project.name} ${project.version}&lt;/message&gt;
            &lt;noJekyll&gt;true&lt;/noJekyll&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;goals&gt;
                &lt;goal&gt;site&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;site&lt;/phase&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-site-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.0&lt;/version&gt;
          &lt;configuration&gt;
            &lt;reportPlugins&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-project-info-reports-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.2&lt;/version&gt;
                &lt;configuration&gt;
                  &lt;dependencyDetailsEnabled&gt;true&lt;/dependencyDetailsEnabled&gt;
                  &lt;dependencyLocationsEnabled&gt;true&lt;/dependencyLocationsEnabled&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.8&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.6&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-changelog-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.2&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                &lt;artifactId&gt;emma-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;1.0-alpha-3&lt;/version&gt;
              &lt;/plugin&gt;
            &lt;/reportPlugins&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;sign&lt;/id&gt;
        &lt;build&gt;
          &lt;plugins&gt;
            &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;id&gt;sign-artifacts&lt;/id&gt;
                  &lt;phase&gt;verify&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;sign&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
            &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.10&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
        &lt;artifactId&gt;jetty-server&lt;/artifactId&gt;
        &lt;version&gt;${jetty.version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- Used to test proxy --&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
        &lt;artifactId&gt;jetty-servlet&lt;/artifactId&gt;
        &lt;version&gt;${jetty.version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
        &lt;artifactId&gt;jetty-servlets&lt;/artifactId&gt;
        &lt;version&gt;${jetty.version}&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>