title: How do I get Eclipse and Maven to download the JARs I need?
body: <p>I'm new to Maven and Eclipse.  We have been using Netbeans and installing jars manually in our projects.</p>
  
  <p>I thought the purpose of Maven was to download the required jars based on your dependencies?</p>
  
  <p>In a new project, I added the following under my <code>dependencies</code> node of my pom.xml file:</p>
  
  <pre><code>    &lt;!-- Java dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.annotation&lt;/groupId&gt;
          &lt;artifactId&gt;com.springsource.javax.annotation&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Spring dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;org.springframework.orm&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Spring Security dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;org.springframework.security.config&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;org.springframework.security.core&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;org.springframework.security.taglibs&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
          &lt;artifactId&gt;org.springframework.security.web&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Other dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.mysql.jdbc&lt;/groupId&gt;
          &lt;artifactId&gt;com.springsource.com.mysql.jdbc&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;com.springsource.org.apache.commons.dbcp&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>But all I get is:</p>
  
  <p><strong>Project build error: 'dependencies.dependency.version' for javax.annotation:com.springsource.javax.annotation:jar is missing.</strong></p>
  
  <p>....</p>
  
  <p>What am I doing wrong?  </p>