title: Maven SNAPSHOT version not loaded from Nexus
body: <p>We have a Sonatype Nexus running in our environment which has another Nexus as proxy repository configured. When we consume our dependencies we ask our Nexus for them. This worked fine until yesterday when I added a new dependency to our project. </p>
  
  <p>It seems that Maven is not properly resolving the snapshot versions that are deployed. In the maven log I can see that it is downloading the maven-metadata.xml but when it tries to download the zip file containing our binaries, it does not replace the -SNAPSHOT with the current snapshot version</p>
  
  <pre><code>&gt; mvn -f My.Product.dependencies.xml process-resources -DConfiguration=AnyConfig -U -X
  
  [DEBUG] Could not find metadata com.company.team:My.New.Dependency:2.2-SNAPSHOT/maven-metadata.xml in local (d:\Maven\repositories)
  [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://buildserver:8082/nexus/content/groups/company
  Downloading: http://buildserver:8082/nexus/content/groups/company/com/company/team/My.New.Dependency/2.2-SNAPSHOT/maven-metadata.xml
  Downloaded: http://buildserver:8082/nexus/content/groups/company/com/company/team/My.New.Dependency/2.2-SNAPSHOT/maven-metadata.xml (850 B at 13.2 KB/sec)
  [DEBUG] Reading resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\resolver-status.properties
  [DEBUG] Writing resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\resolver-status.properties
  [DEBUG] Could not find metadata com.company.team:My.New.Dependency:2.2-SNAPSHOT/maven-metadata.xml in local (d:\Maven\repositories)
  [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://buildserver:8082/nexus/content/groups/company
  Downloading: http://buildserver:8082/nexus/content/groups/company/com/company/team/My.New.Dependency/2.2-SNAPSHOT/maven-metadata.xml
  Downloaded: http://buildserver:8082/nexus/content/groups/company/com/company/team/My.New.Dependency/2.2-SNAPSHOT/maven-metadata.xml (850 B at 55.3 KB/sec)
  [DEBUG] Reading resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\resolver-status.properties
  [DEBUG] Writing resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\resolver-status.properties
  ...
  Downloading: http://buildserver:8082/nexus/content/groups/company/com/company/team/My.New.Dependency/2.2-SNAPSHOT/My.New.Dependency-2.2-SNAPSHOT-vs2010-40-AnyCpu-Release.zip
  [DEBUG] Reading resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\My.New.Dependency-2.2-SNAPSHOT-vs2010-40-AnyCpu-Release.zip.lastUpdated
  [DEBUG] Writing resolution tracking file d:\Maven\repositories\com\company\team\My.New.Dependency\2.2-SNAPSHOT\My.New.Dependency-2.2-SNAPSHOT-vs2010-40-AnyCpu-Release.zip.lastUpdated
  [INFO] ------------------------------------------------------------------------
  ...
  [INFO] ------------------------------------------------------------------------
  [INFO] Reactor Summary:
  [INFO]
  [INFO] My.Client.App  FAILURE [1.922s]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.687s
  [INFO] Finished at: Thu Oct 13 09:54:24 CEST 2016
  [INFO] Final Memory: 9M/177M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project My.Client.App: Could not resolve dependencies for project com.company.team2:My.Client.App:pom:7.0-SNAPSHOT: The following artifacts could not be resolved: com.company.team:My.New.Dependency:zip:vs2010-40-AnyCpu-Release:2.2-SNAPSHOT: Could not find artifact com.company.team:My.New.Dependency:zip:vs2010-40-AnyCpu-Release:2.2-SNAPSHOT in company (http://buildserver:8082/nexus/content/groups/company) -&gt; [Help 1]
  </code></pre>
  
  <p>The maven-metadata.xml contains properly the snapshot version information: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;metadata modelVersion="1.1.0"&gt;
    &lt;groupId&gt;com.company.team&lt;/groupId&gt;
    &lt;artifactId&gt;My.New.Dependency&lt;/artifactId&gt;
    &lt;version&gt;2.2-SNAPSHOT&lt;/version&gt;
    &lt;versioning&gt;
      &lt;snapshot&gt;
        &lt;timestamp&gt;20161011.235855&lt;/timestamp&gt;
        &lt;buildNumber&gt;102&lt;/buildNumber&gt;
      &lt;/snapshot&gt;
      &lt;lastUpdated&gt;20161011235855&lt;/lastUpdated&gt;
      &lt;snapshotVersions&gt;
        &lt;snapshotVersion&gt;
          &lt;extension&gt;pom&lt;/extension&gt;
          &lt;value&gt;2.2-20161011.235855-102&lt;/value&gt;
          &lt;updated&gt;20161011235855&lt;/updated&gt;
        &lt;/snapshotVersion&gt;
        &lt;snapshotVersion&gt;
          &lt;classifier&gt;vs2010-40-AnyCPU-Release&lt;/classifier&gt;
          &lt;extension&gt;zip&lt;/extension&gt;
          &lt;value&gt;2.2-20161011.235855-102&lt;/value&gt;
          &lt;updated&gt;20161011235855&lt;/updated&gt;
        &lt;/snapshotVersion&gt;
      &lt;/snapshotVersions&gt;
    &lt;/versioning&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>When I check the directory listing of the folder where it downloads the stuff from, the 2.2-20161011.235855-102 version is properly there: </p>
  
  <p><a href="https://i.stack.imgur.com/BNQFl.png" rel="nofollow"><img src="https://i.stack.imgur.com/BNQFl.png" alt="Nexus Directory Listing"></a></p>
  
  <p>All other dependencies from the same repository work perfectly fine, just the newly introduced one is not dowloaded. It currently drives me crazy that Maven is not replacing the -SNAPSHOT with the actual snapshot version number like it does for all the other dependencies. I also tried the options "Expire Cache" and "Update Index" in the Nexus UI but that didn't help. What could cause Maven to fall back from the actual version number to the -SNAPSHOT? There is also no log entry that would explain this. </p>