title: maven getting "Not Authorized" when trying to access nexus private repository
body: <p>I've set up a private nexus repo manager on an EC2 instance and followed the various instructions floating around the internet on how to set up a maven project to use it. I have also disabled the anonymous account.
      I am able to connect and copy repositories via <code>curl -U username:password &lt;the_url&gt;</code>
      and it seems to work fine. However when I try to use maven (any goals) The very first thing I get is</p>
  
  <pre><code>    [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-plugin/maven-metadata.xml from/to nexus (http://MY_NEXUS_HOST:8081/nexus/content/groups/public): Not authorized , ReasonPhrase:Unauthorized.
  </code></pre>
  
  <p>The mvn command then fails because it can't find the plugin anywhere. So the fact that I can use the rest command and it works as expected, but not through maven indicates to me that it is a problem with the configuration. I think I understand what's going on pretty well, and I've checked and rechecked the files, but I don't see anything wrong. 
      Here's the settings.xml file</p>
  
  <blockquote>
  <pre><code>&lt;servers&gt;
    &lt;server&gt;
        &lt;id&gt;nexus-snapshot&lt;/id&gt;
        &lt;username&gt;USER_NAME&lt;/username&gt;
        &lt;password&gt;USER_PASSWD&lt;/password&gt;
    &lt;/server&gt;
    &lt;server&gt;
        &lt;id&gt;nexus-release&lt;/id&gt;
        &lt;username&gt;USER_NAME&lt;/username&gt;
        &lt;password&gt;USER_PASSWD&lt;/password&gt;
    &lt;/server&gt;
  
  &lt;/servers&gt;
  &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;!--This sends everything else to /public --&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;http://MY_NEXUS_HOST:8081/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;!--Enable snapshots for the built in central repo to direct --&gt;
        &lt;!--all requests to nexus via the mirror --&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;/releases&gt;
            &lt;snapshots&gt;
                &lt;enabled&gt;true&lt;/enabled&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;never&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;!--make the profile active all the time --&gt;
      &lt;activeProfile&gt;nexus&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  </code></pre>
  </blockquote>
  
  <p>And here is the relevent portion of the pom file</p>
  
  <pre><code>    &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;nexus-release&lt;/id&gt;
              &lt;name&gt;Nexus Release Repository&lt;/name&gt;
              &lt;url&gt;http://MY_NEXUS_HOST:8081/nexus/content/repositories/releases&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;nexus-snapshot&lt;/id&gt;
              &lt;name&gt;Nexus Snapshot Repository&lt;/name&gt;
              &lt;url&gt;http://MY_NEXUS_HOST:8081/nexus/content/repositories/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>I'm wondering if there's a way to see the exact issue I'm running into. For instance, if I'm getting a 401, 403 or (for some reason?) 404.
  If someone can please help me I'd be ever so greatful.
  Oh, both maven and nexus are the latest versions as of last week.
  *edited because no matter how many times you check something before hitting submit...</p>