title: Nexus Won't Serve SNAPSHOTs From Default Public Group
body: <p>For some reason I can't get Nexus to serve my SNAPSHOT artifacts via the default public group. I've read the relevant bit of the Nexus manual and search Google, but nothing I do seems to work. </p>
  
  <p>I've implemented the stuff in section 4.2. (<a href="http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html" rel="noreferrer">Configuring Maven to Use a Single Nexus Group</a>) of the manual, so my settings.xml looks like:</p>
  
  <pre><code>&lt;settings&gt;
  
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;http://my-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;activation&gt;
          &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
        &lt;/activation&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;/releases&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
            &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  
  &lt;/settings&gt;
  </code></pre>
  
  <p>Everything was working fine until I started  building stuff on a clean machine (i.e. one I hadn't built any of the SNAPSHOT projects on) and it wouldn't down load the required SNAPSHOT dependencies. Maven gives me the following:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]       
  [INFO] ------------------------------------------------------------------------
  [INFO] Building MyCo Actions Base Classes 1.0.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/maven-metadata.xml
  Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/maven-metadata.xml
  Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/testing-1.0.0-SNAPSHOT.pom
  [WARNING] The POM for com.myco:testing:jar:1.0.0-SNAPSHOT is missing, no dependency information available
  Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/testing-1.0.0-SNAPSHOT.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 1.023s
  [INFO] Finished at: Tue Mar 08 15:55:23 GMT 2011
  [INFO] Final Memory: 99M/480M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project actions-base: Could not resolve dependencies for project com.myco:actions-base:jar:1.0.0-SNAPSHOT: Could not find artifact com.myco:testing:jar:1.0.0-SNAPSHOT in nexus (http://my-sever/nexus/content/groups/public) -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  </code></pre>
  
  <p>The problem being that testing-1.0.0-SNAPSHOT.jar doesn't exist, but testing-1.0.0-20110301.182820-1.jar does. How do I get Nexus to resolve the SNAPSHOT properly and serve me my JAR...?</p>