maven-release-plugin deploying SNAPSHOT <p>I have a Maven project and now want to release it with the maven-release-plugin. Unfortunately after executing <code>mvn release:prepare</code> the git tag contains the old version number (1.0-SNAPSHOT) and when deploying to artifactory the SNAPSHOT version is used instead of the desired release version.</p> <p>I already found <a href="https://issues.apache.org/jira/browse/MRELEASE-812" rel="nofollow">this</a> bug, but all suggested solutions are not working for me.</p> <p>I'm using:</p> <ul> <li>Apache Maven 3.3.9</li> <li>git version 2.7.0 (German)</li> </ul> <p>I already tried several versions of the release plugin (2.4, 2.5.3, 2.5.1) but none woked. Does anyone have a fix for that problem?</p> <p><strong><em>EDIT1:</em></strong> The current pom.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &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/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;mygroupid&lt;/groupId&gt; &lt;artifactId&gt;myartifact&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;!-- [...] --&gt; &lt;scm&gt; &lt;url&gt;http://url/to/gitlab&lt;/url&gt; &lt;connection&gt;scm:git:git@gitlab:group/repo.git&lt;/connection&gt; &lt;developerConnection&gt;scm:git:git@gitlab:group/repo.git&lt;/developerConnection&gt; &lt;tag&gt;HEAD&lt;/tag&gt; &lt;/scm&gt; &lt;!-- [...] --&gt; &lt;distributionManagement&gt; &lt;!-- [...] --&gt; &lt;/distributionManagement&gt; &lt;/project&gt; </code></pre>