title: Maven Nexus private repository access
body: <p>I have just set up a nexus repository in my local network. This repository exposes access to the Maven central repository, plus three different private hosted repositories: <strong>snapshot</strong>, <strong>release</strong> and <strong>ext3rdparty</strong>. All these repositories are part of the public group in nexus, which I use as a central access point for all repositories:</p>
  
  <p><a href="http://nexus.server/nexus/content/groups/public/" rel="nofollow">http://nexus.server/nexus/content/groups/public/</a></p>
  
  <p><strong>My problem is</strong>: Using NetBeans as development envirnment, I can access to all repositories <strong>except</strong> the <strong>ext3rdparty</strong>. i.e. i got a compilation error when I try to build projects which are based on libraries stored in the ext3rdparty repo, and NetBeans can't find / navigate any of the artifacts available in this repository.</p>
  
  <p>I suspect this is a settings.xml / pom.xml problem and not a NetBeans one because as I said, I can access to artifacts that I've released in other repositories, but I can't figure-out what's the problem.</p>
  
  <p>Here is the FULL content of my settings.xml to redirect maven to my own repository:</p>
  
  <pre><code>&lt;mirrors&gt;
      &lt;mirror&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
          &lt;url&gt;http://nexus.server/nexus/content/groups/public&lt;/url&gt;
      &lt;/mirror&gt;
  &lt;/mirrors&gt;
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;central&lt;/id&gt;
                  &lt;url&gt;http://central&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/repository&gt;
          &lt;/repositories&gt;
          &lt;pluginRepositories&gt;
              &lt;pluginRepository&gt;
                  &lt;id&gt;central&lt;/id&gt;
                  &lt;url&gt;http://central&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/pluginRepository&gt;
          &lt;/pluginRepositories&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;activeProfiles&gt;
      &lt;activeProfile&gt;nexus&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  
  &lt;servers&gt;
      &lt;server&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;username&gt;user&lt;/username&gt;
          &lt;password&gt;***&lt;/password&gt;
      &lt;/server&gt;
      &lt;server&gt;
          &lt;id&gt;releases&lt;/id&gt;
          &lt;username&gt;user&lt;/username&gt;
          &lt;password&gt;***&lt;/password&gt;
      &lt;/server&gt;
      &lt;server&gt;
          &lt;id&gt;snapshots&lt;/id&gt;
          &lt;username&gt;user&lt;/username&gt;
          &lt;password&gt;***&lt;/password&gt;
      &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>
  
  <p>And here is the repositories-related part of my parent pom to allow deployment:</p>
  
  <pre><code>        &lt;distributionManagement&gt;
              &lt;repository&gt;
                  &lt;id&gt;releases&lt;/id&gt;
                  &lt;name&gt;Releases&lt;/name&gt;
                  &lt;url&gt;http://nexus.server/nexus/content/repositories/releases/&lt;/url&gt;
              &lt;/repository&gt;
  
              &lt;snapshotRepository&gt;
                  &lt;id&gt;snapshots&lt;/id&gt;
                  &lt;name&gt;Snapshots&lt;/name&gt;
                  &lt;url&gt;http://nexus.server/nexus/content/repositories/snapshots/&lt;/url&gt;
              &lt;/snapshotRepository&gt;
          &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>Any idea of what's wrong ?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Half of a day lost: I finally ended up with removing all dependencies from the ext3rdparty repository, uploading them again to the repository, and updating all indexes and now everything works fine... </p>
  
  <p>Don't really know what was the problem here, but at least the pom and the settings were OK. Thanks for your help.</p>