title: Release a snapshot to nexus using maven 3.0.5
body: <p>I am unable to release a snapshot version of an artifact which I build using maven to nexus. The version of my artifact states 1.0.0-SNAPSHOT.</p>
  
  <p>I can execute <code>mvn clean install</code> without an issue. But when I try to deploy using <code>mvn deploy</code> , I get the following error :</p>
  
  <pre><code>Return code is: 400, ReasonPhrase: Repository version policy: RELEASE does not allow version: 1.0.0-20161019.214318-1. -&gt; [Help 1]
  </code></pre>
  
  <p>According to what I was able to find out was that maven3 adds the timestamp instead of the SNAPSHOT suffix on the artifact that I want to deploy. The <code>&lt;uniqueVersion&gt;</code> tag of maven is not supported in maven3. What is the approach that I need to take to deploy these artifacts using <code>mvn deploy</code> command.</p>
  
  <p>Updated : 
  pom.xml</p>
  
  <pre><code>   &lt;distributionManagement&gt;
      &lt;repository&gt;
        &lt;id&gt;my-nexus-snapshots&lt;/id&gt;
        &lt;name&gt;Internal Snapshot Releases&lt;/name&gt;
        &lt;url&gt;http://localhost:9999/repository/maven-snapshots/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
        &lt;id&gt;my-nexus-releases&lt;/id&gt;
        &lt;name&gt;Internal Releases&lt;/name&gt;
        &lt;url&gt;http://localhost:9999/repository/maven-releases/&lt;/url&gt;
      &lt;/snapshotRepository&gt;
    &lt;/distributionManagement&gt;
  </code></pre>
  
  <p>settings.xml</p>
  
  <pre><code>    &lt;server&gt;
          &lt;id&gt;my-nexus-snapshots&lt;/id&gt;
          &lt;username&gt;user&lt;/username&gt;
          &lt;password&gt;user123&lt;/password&gt;
      &lt;/server&gt;
      &lt;server&gt;
          &lt;id&gt;my-nexus-releases&lt;/id&gt;
          &lt;username&gt;user&lt;/username&gt;
          &lt;password&gt;user123&lt;/password&gt;
      &lt;/server&gt;
  </code></pre>