title: How to use only company local nexus repository
body: <p>I would like to create company local maven repository using nexus. Repository should not download anything from public internet, everything needed is added to repo. Developer's local maven instanses should download needed libraries and tools from company nexus. I have managed to do this by using mirror like this in settings.xml:</p>
  
  <pre><code>&lt;mirror&gt;
    &lt;id&gt;company-repository&lt;/id&gt;
    &lt;name&gt;Company releases repository&lt;/name&gt;
    &lt;url&gt;http://nexus.company.com/nexus/content/repositories/releases&lt;/url&gt;
    &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
  &lt;/mirror&gt;
  </code></pre>
  
  <p>Problem with this solution is that I am only able to point to releases repository, I would like to include thirdparty and snapshot repository to search as well. Has anyone any idea how that should be done? Mirror tag takes only one url. </p>
  
  <p>I also tried with defining default profile like this:</p>
  
  <pre><code>&lt;profile&gt;            
      &lt;id&gt;defaultProfile&lt;/id&gt;
      &lt;activation&gt;
          &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
      &lt;/activation&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;company-thirdparty-repo&lt;/id&gt;
              &lt;url&gt;http://nexus.company.com//nexus/content/repositories/thirdparty&lt;/url&gt;
              &lt;releases&gt;
                   &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt; 
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;company-releases-repo&lt;/id&gt;
              &lt;url&gt;http://nexus.company.com/nexus/content/repositories/releases&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt;
              &lt;/snapshots&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt;
              &lt;/releases&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;url&gt;http://nexus.company.com/nexus/content/repositories/central&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;checksumPolicy&gt;fail&lt;/checksumPolicy&gt;
              &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;            
  &lt;/profile&gt; 
  </code></pre>
  
  <p>Problem with that solution is that if Maven don't find something from those repositories it still downloads it from repo.maven.apache.org. I will appreciate any help. Thanks!</p>