title: Maven local repository in settings.xml vs pom.xml
body: <p>I am new to Maven. I would like to use the following setup:</p>
  
  <p>1) a remote repository to download public artifact </p>
  
  <p>2) a shared local repository for downloaded artifacts which works nicely by adding the following to <strong>settings.xml</strong>: </p>
  
  <pre><code>&lt;localRepository&gt;C:/m2repo&lt;/localRepository&gt;
  </code></pre>
  
  <p>3) Now I would also like to have a repository for artifacts referenced 
     from a single project, like an old-fashioned "lib" folder.</p>
  
  <p>So I have added the following to the project's <strong>pom.xml</strong>: </p>
  
  <pre><code>&lt;repository&gt;
    &lt;id&gt;repo&lt;/id&gt;
    &lt;name&gt;repo&lt;/name&gt; 
    &lt;releases&gt;
      &lt;enabled&gt;true&lt;/enabled&gt;
      &lt;checksumPolicy&gt;ignore&lt;/checksumPolicy&gt;
    &lt;/releases&gt;
    &lt;url&gt;${project.baseUri}repo&lt;/url&gt;
  &lt;/repository&gt;
  </code></pre>
  
  <p>I have deployed some jars to the "repo" folder, but when I add them as dependencies in pom.xml, they are not resolved. Maven only looks to the shared repository and the remote repository. When I copy the contents of "repo" to the shared "m2repo", it works. Am I missing something or is this setup not possible at all? </p>