title: maven unable to download jar files from repositories, doesn't recognize already present jar files
body: <p>I'm new to Maven and m2eclipse, and have been trying to run the main pom.xml file as a maven install for the first time, but it's just not working right. It tries to download some jar files (from both public and private repositories), but can't seem to access the repositories. </p>
  
  <p>The code was written by someone else at my company and works fine on other computers, so I don't think it's that, it's more likely a problem with how I have eclipse, maven, and m2eclipse set up. I'll post a sample of the pom.xml anyways</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey.jersey-test-framework&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-test-framework-core&lt;/artifactId&gt;
          &lt;version&gt;${jersey-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>    &lt;repository&gt;
          &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
          &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
          &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt;
          &lt;layout&gt;default&lt;/layout&gt;
      &lt;/repository&gt;
  </code></pre>
  
  <p>The error associated with this specific chunk is:</p>
  
  <blockquote>
    <p>Failed to execute goal on project webservice-service-ejbs: Could not resolve dependencies for project com.lexi:webservice-service-ejbs:ejb:2.1: Failed to collect dependencies for [...]  com.sun.jersey.jersey-test-framework:jersey-test-framework-core:jar:1.4 (test)</p>
  </blockquote>
  
  <p>So after wrangling with this for a bit I got fed up and decided to manually download each jar that I needed and place it in its proper spot in the .m2 folder. But maven doesn't seem to recognize that the jar files are there and continues trying and failing to download them. So if anyone can tell me what I might need to do to get those downloaded properly, or just get maven to recognize that they are already in the project, that'd be wonderful.</p>
  
  <p>Thanks.</p>