title: How to set tag for Maven release
body: <p>I'm using the <a href="https://maven.apache.org/maven-release/maven-release-plugin/" rel="nofollow noreferrer">Maven Release Plugin</a> and I'm trying to tag every release with my Jenkins build number.</p>
  
  <p>I've tried this from <code>pom.xml</code>:</p>
  
  <pre><code>      &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5.3&lt;/version&gt;
          &lt;configuration&gt;
            &lt;tagNameFormat&gt;${env.BUILD_NUMBER}&lt;/tagNameFormat&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
  </code></pre>
  
  <p>And also from Jenkins when I'm calling Maven:</p>
  
  <pre><code>mvn release:prepare -tag=${env.BUILD_NUMBER}
  </code></pre>
  
  <p>However, I'm getting:</p>
  
  <pre><code>Unable to tag SCM
  [ERROR] Provider message:
  [ERROR] The git-tag command failed.
  [ERROR] Command output:
  [ERROR] fatal: tag 'my-project-1.3' already exists
  </code></pre>
  
  <p>I'm not sure what <code>1.3</code> stands for.</p>
  
  <p>So how can I tag the release? I am doing any mistake?</p>