title: mvn release:prepare not committing changes to pom.xml
body: <p>I'm trying to release a Jenkins plugin (<a href="https://github.com/jenkinsci/stashnotifier-plugin" rel="noreferrer">stashNotifier</a>) with Maven and face a problem with the release plugin. </p>
  
  <pre><code>mvn clean release:prepare
  </code></pre>
  
  <p>runs to completion without errors but fails to commit the changed pom.xml in my local git repository. Even though it does tag the HEAD of the branch on which I'm trying to release version 1.0.2. This is what my local branch looks like before preparing the release</p>
  
  <pre><code>* df60768 (HEAD, origin/develop, develop) upgraded parent pom to version 1.498
  * 792766a added distribution management section to pom.xml and amended readme.md 
  </code></pre>
  
  <p>and this is what it looks like after</p>
  
  <pre><code>* df60768 (HEAD, tag: stashNotifier-1.0.2, origin/develop, develop) upgraded parent pom to version 1.498
  * 792766a added distribution management section to pom.xml and amended readme.md 
  </code></pre>
  
  <p>Unfortunately, the pom.xml already contains the next development version, which in turn causes a subsequent release:perform to release that snapshot version.</p>
  
  <p>From the command output of maven, it almost looks like it's omitting the git commit command:</p>
  
  <pre><code>[INFO] Checking in modified POMs...
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git add -- pom.xml
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git status
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Tagging release with the label stashNotifier-1.0.2...
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git tag -F /var/folders/dr/xxbtyycs1z9dl2_snlj87zrh0000gn/T/maven-scm-678409272.commit stashNotifier-1.0.2
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git push git@github.com:jenkinsci/stashnotifier-plugin.git stashNotifier-1.0.2
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git ls-files
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Transforming 'Stash Notifier'...
  [INFO] Not removing release POMs
  [INFO] Checking in modified POMs...
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git add -- pom.xml
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Executing: /bin/sh -c cd /Users/gruetter/Dropbox/stashNotifier &amp;&amp; git status
  [INFO] Working directory: /Users/gruetter/Dropbox/stashNotifier
  [INFO] Release preparation complete.
  </code></pre>
  
  <p>I'm running maven 3.0.5 (without --dry-run or -DpushChanges=false). Here are the relevant (I think) parts of my effective pom:</p>
  
  <pre><code>[...]
  
  &lt;scm&gt;
     &lt;connection&gt;scm:git:git://github.com/jenkinsci/stashnotifier-plugin.git&lt;/connection&gt;
     &lt;developerConnection&gt;scm:git:git@github.com:jenkinsci/stashnotifier-plugin.git&lt;/developerConnection&gt;
     &lt;url&gt;https://github.com/jenkinsci/stashnotifier-plugin&lt;/url&gt;
  &lt;/scm&gt;
  
  [...]
  
  &lt;distributionManagement&gt;
     &lt;repository&gt;
        &lt;id&gt;maven.jenkins-ci.org&lt;/id&gt;
        &lt;url&gt;http://maven.jenkins-ci.org:8081/content/repositories/releases/&lt;/url&gt;
     &lt;/repository&gt;
     &lt;snapshotRepository&gt;
        &lt;id&gt;maven.jenkins-ci.org&lt;/id&gt;
        &lt;url&gt;http://maven.jenkins-ci.org:8081/content/repositories/snapshots&lt;/url&gt;
     &lt;/snapshotRepository&gt;
     &lt;site&gt;
       &lt;id&gt;github-pages&lt;/id&gt;
       &lt;url&gt;gitsite:git@github.com/jenkinsci/maven-site.git:plugin-parent/stashNotifier&lt;/url&gt;
     &lt;/site&gt;
  &lt;/distributionManagement&gt;
  
  [...]
  
  &lt;properties&gt;
     [...]
     &lt;maven-release-plugin.version&gt;2.2.2&lt;/maven-release-plugin.version&gt;
     [...]
  &lt;/properties&gt;
  
  [...]
  
  &lt;build&gt;
     [...]
     &lt;pluginManagement&gt;
        &lt;plugins&gt;
           [...]
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2.2&lt;/version&gt;
           &lt;/plugin&gt;
           [...]
     &lt;/pluginManagement&gt;
  
     [...]
  
     &lt;plugins&gt;
        [...]
        &lt;plugin&gt;
           &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
           &lt;version&gt;2.2.2&lt;/version&gt;
           &lt;configuration&gt;
              &lt;goals&gt;deploy&lt;/goals&gt;
           &lt;/configuration&gt;
        &lt;/plugin&gt;
        [...]
     &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>What am I doing wrong? Thanks in advance for your insights!</p>