title: Maven not downloading dependencies in Eclipse
body: <p>I am setting up a project in eclipse . This projects builds successfully through command line(all <code>mvn</code> commands like <code>mvn package</code>, <code>mvn compile</code>, <code>mvn clean install</code>) work perfectly fine. While setting up this project on STS or Eclipse . I see some of the dependencies are not getting downloaded even though they are present in <code>pom.xml</code>. However, searching them in the maven repository and downloading the jar to my local computer and then adding them to build path makes it work on Eclipse. </p>
  
  <p>Is there anything that we need to do to eclipse to make sure it downloads all the dependencies from the repository.</p>
  
  <p><strong>My POM</strong>:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.bookkeeper&lt;/groupId&gt;
      &lt;artifactId&gt;bookkeeper-server-compat410&lt;/artifactId&gt;
      &lt;version&gt;4.1.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.apache.bookkeeper&lt;/groupId&gt;
              &lt;artifactId&gt;bookkeeper-server&lt;/artifactId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.bookkeeper&lt;/groupId&gt;
      &lt;artifactId&gt;bookkeeper-server-compat420&lt;/artifactId&gt;
      &lt;version&gt;4.2.0&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
      &lt;exclusions&gt;
          &lt;exclusion&gt;
              &lt;groupId&gt;org.apache.bookkeeper&lt;/groupId&gt;
              &lt;artifactId&gt;bookkeeper-server&lt;/artifactId&gt;
          &lt;/exclusion&gt;
      &lt;/exclusions&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Both these artifacts were not downloaded for eclipse and there jars found <a href="http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat410/4.1.0" rel="noreferrer">http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat410/4.1.0</a> and <a href="http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat420/4.2.0" rel="noreferrer">http://mvnrepository.com/artifact/org.apache.bookkeeper/bookkeeper-server-compat420/4.2.0</a> were not present in the folder for MavenDependencies and were subsequently giving errors in Eclipse.</p>
  
  <p><a href="https://i.stack.imgur.com/U9lNs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U9lNs.png" alt="enter image description here"></a></p>
  
  <p>However manually adding them to the build path created a new folder (Reference Library) and resolved the Eclipse Errors . Why did Eclipse not download and import these dependencies by themselves from the maven repository ?? Is it a bug in Eclipse or some problem from my side . Please help.</p>
  
  <p><a href="https://i.stack.imgur.com/4vEVJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4vEVJ.png" alt="enter image description here"></a></p>