title: Specifying the maven repository URL for getting the dependencies resolved?
body: <p>I am trying to understand how maven downloads the binaries from the repositories.</p>
  
  <p>For example, I have the following dependency for my project:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
      &lt;artifactId&gt;hadoop-hdfs&lt;/artifactId&gt;
      &lt;version&gt;2.7.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Now, these binaries are present in <a href="http://mvnrepository.com/" rel="nofollow noreferrer">http://mvnrepository.com/</a>.</p>
  
  <p>In pom.xml, we have <code>&lt;repositories&gt;</code> tag where we specify the repository URL from where maven can download the files, template:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;mvnrepository_id&lt;/id&gt;
          &lt;name&gt;mvnrepository.com&lt;/name&gt;
          &lt;url&gt;&lt;/url&gt;
      &lt;/repository&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now, my doubt is, what should be the value of the <code>&lt;url&gt;</code>; does it need to be the <code>base url</code> , like <a href="http://mvnrepository.com/" rel="nofollow noreferrer">http://mvnrepository.com/</a> or the complete URL --> <a href="http://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs" rel="nofollow noreferrer">http://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs</a></p>
  
  <p>To me it appears that is should be the base url else for each dependency we have to put the complete URL.</p>
  
  <p>Can anyone help me understand this?</p>