title: Maven deploys to snapshot instead of release
body: <p>I'm trying to release a project using maven but instead of releasing to the Releases repository it puts it in our Snapshots repo.</p>
  
  <p>My pom looks like:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                               http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.example.my.profiler&lt;/groupId&gt;
  &lt;artifactId&gt;profilerlib&lt;/artifactId&gt;
  &lt;name&gt;Profiler Lib&lt;/name&gt;
  &lt;version&gt;1.0.2-SNAPSHOT&lt;/version&gt;
  &lt;description&gt;Profiler Library&lt;/description&gt;
  &lt;scm&gt;
      &lt;connection&gt;scm:svn:https://svn.example.com/my-project/profilerlib/trunk
      &lt;/connection&gt;
      &lt;developerConnection&gt;scm:svn:https://svn.example.com/my-project/profilerlib/trunk
      &lt;/developerConnection&gt;
  &lt;/scm&gt;
  &lt;distributionManagement&gt;
      &lt;!-- Publish the versioned releases here --&gt;
      &lt;repository&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;name&gt;nexus&lt;/name&gt;
          &lt;url&gt;http://repo.example.com:8081/nexus/content/repositories/releases
          &lt;/url&gt;
      &lt;/repository&gt;
      &lt;!-- Publish the versioned releases here --&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;name&gt;nexus&lt;/name&gt;
          &lt;url&gt;http://repo.example.com:8081/nexus/content/repositories/snapshots
          &lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;!-- download artifacts from this repo --&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;nexus&lt;/id&gt;
          &lt;name&gt;EXAMPLE Public Repository&lt;/name&gt;
          &lt;url&gt;http://repo.example.com:8081/nexus/content/groups/public&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;dependencies&gt;
      ...
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;tagBase&gt;https://svn.example.com/my-project/profilerlib/tags
                  &lt;/tagBase&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;powermock.version&gt;1.4.6&lt;/powermock.version&gt;
  &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>