maven clean install with release plugin
<p>How do we integrate release plugin with <code>clean install</code>. Currently we execute <code>clean install -Pprofile,autoInstallPackage</code> to build and deploy the package to the environment after changing the SNAPSHOT version to release version in pom.xml.</p>

<p>We wanted to enhance the release process which includes updating pom with release version -> deploy using install profile -> creating a new Development Version.</p>

<p>for which <code>clean install release:prepare -Dresume=false -DreleaseVersion=3.2 -Dtag=3.2 -DdevelopmentVersion=3.3</code> works as well without deployment to environment.</p>

<p>I have problem in executing</p>

<pre><code>`clean install -Pprofile,autoInstallPackage release:prepare -Dresume=false -DreleaseVersion=3.2 -Dtag=3.2 -DdevelopmentVersion=3.3`
</code></pre>

<p>this deploys a SNAPSHOT version rather than release version which makes sense as I don't have a proper sequence.</p>

<p>However, Using the below command doesn't work either:</p>

<p><code>clean \
release:prepare -Dresume=false -DreleaseVersion=3.2 -Dtag=3.2 \
install -Pprofile,autoInstallPackage \
release:prepare -DdevelopmentVersion=3.3</code></p>

<p>this is trying to execute git tag twice and fails. Still deploys the 3.2-SNAPSHOT version.</p>