title: maven-metadata.xml is not updated when deploying to nexus
body: <p>i am using Apache Maven 3.0
  Nexus Open Source Edition, Version: 1.8.0.1</p>
  
  <p>this is part of my pom.xml</p>
  
  <pre><code>&lt;plugin&gt;
     &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.5&lt;/version&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
     &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.1&lt;/version&gt;
  &lt;/plugin&gt;
  
  &lt;distributionManagement&gt;
     &lt;repository&gt;
     &lt;id&gt;nexus&lt;/id&gt;
     &lt;name&gt;nexus&lt;/name&gt;
     &lt;url&gt;http://myrepo/nexus/content/repositories/releases&lt;/url&gt;
     &lt;/repository&gt;
  &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>it is a very simple project. when i do</p>
  
  <pre><code>  mvn release:prepare
    mvn release:perform
  </code></pre>
  
  <p>everything runs fine:</p>
  
  <pre><code>...
  [INFO] [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ simple ---
  [INFO] Uploading: http://myrepo/nexus/content/repositories/releases/...pom
  [INFO] 4 KB   
  [INFO] 5 KB   
  [INFO]        
  [INFO] Uploaded: http://myrepo/nexus/content/repositories/releases/....pom (5 KB at 1.0 KB/sec)
  [INFO] Downloading: http://myrepo/nexus/content/repositories/releases/.../maven-metadata.xml
  [INFO] 603 B   
  [INFO]         
  [INFO] Downloaded: http://myrepo/nexus/content/repositories/releases/.../maven-metadata.xml (603 B at 1.5 KB/sec)
  [INFO] Uploading: http://myrepo/nexus/content/repositories/releases/.../maven-metadata.xml
  [INFO] 634 B   
  [INFO]         
  [INFO] Uploaded: http://myrepo/nexus/content/repositories/.../maven-metadata.xml (634 B at 1.6 KB/sec)
  </code></pre>
  
  <p>Now i download <a href="http://myrepo/nexus/content/repositories/.../maven-metadata.xml">http://myrepo/nexus/content/repositories/.../maven-metadata.xml</a> 
  it looks like this:</p>
  
  <pre><code>&lt;metadata&gt;
  &lt;groupId&gt;simple&lt;/groupId&gt;
  &lt;artifactId&gt;simple&lt;/artifactId&gt;
  &lt;versioning&gt;
  &lt;latest&gt;0.5.8&lt;/latest&gt;
  &lt;release&gt;0.5.8&lt;/release&gt;
  &lt;versions&gt;
  &lt;version&gt;0.5.9&lt;/version&gt;
  &lt;version&gt;0.1&lt;/version&gt;
  &lt;version&gt;0.3&lt;/version&gt;
  &lt;version&gt;0.4&lt;/version&gt;
  &lt;version&gt;0.5.1&lt;/version&gt;
  &lt;version&gt;0.5.2&lt;/version&gt;
  &lt;version&gt;0.5.3&lt;/version&gt;
  &lt;version&gt;0.5.4&lt;/version&gt;
  &lt;version&gt;0.5.5&lt;/version&gt;
  &lt;version&gt;0.5.6&lt;/version&gt;
  &lt;version&gt;0.5.7&lt;/version&gt;
  &lt;version&gt;0.5.8&lt;/version&gt;
  &lt;/versions&gt;
  &lt;lastUpdated&gt;20110202190804&lt;/lastUpdated&gt;
  &lt;/versioning&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>my latest and just released version is not marked as "latest" and "release".</p>
  
  <p>Now i do "Rebuild Metadata" inside Nexus WebUI. I download metadata after this again. It looks now like this</p>
  
  <pre><code>&lt;metadata&gt;
    &lt;groupId&gt;simple&lt;/groupId&gt;
    &lt;artifactId&gt;simple&lt;/artifactId&gt;
    &lt;versioning&gt;
      &lt;latest&gt;0.5.9&lt;/latest&gt;
      &lt;release&gt;0.5.9&lt;/release&gt;
      &lt;versions&gt;
        &lt;version&gt;0.1&lt;/version&gt;
        &lt;version&gt;0.3&lt;/version&gt;
        &lt;version&gt;0.4&lt;/version&gt;
        &lt;version&gt;0.5.1&lt;/version&gt;
        &lt;version&gt;0.5.2&lt;/version&gt;
        &lt;version&gt;0.5.3&lt;/version&gt;
  
        &lt;version&gt;0.5.4&lt;/version&gt;
        &lt;version&gt;0.5.5&lt;/version&gt;
        &lt;version&gt;0.5.6&lt;/version&gt;
        &lt;version&gt;0.5.7&lt;/version&gt;
        &lt;version&gt;0.5.8&lt;/version&gt;
        &lt;version&gt;0.5.9&lt;/version&gt;
  
      &lt;/versions&gt;
      &lt;lastUpdated&gt;20110202191117&lt;/lastUpdated&gt;
    &lt;/versioning&gt;
  &lt;/metadata&gt;
  </code></pre>
  
  <p>This looks like a bug in nexus or in maven? Does anybody has a solution for this? </p>