title: Using mvn release:prepare/perform with Git
body: <p>I want to integrate Git with my Maven Workflow. Basically, I want to succesfully execute following 4 commands:</p>
  
  <pre class="lang-none prettyprint-override"><code>mvn release:prepare
  mvn release:rollback
  mvn release:perform
  mvn deploy
  </code></pre>
  
  <p>This should work without any additional plugins or tools (no gitflow). I am at a loss pulling the documentation together, and am almost at a point where I want to declare that you would only use maven releases in combination with an svn repository.</p>
  
  <p>My main problem seems to be in how to handle the server fingerprinting. I do not want (cannot) to use a password, so I need to revert to using publick/private key. I have put my public key already on the remote repository, and I seem to be able to authenticate with something similar to this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;server&gt;
    &lt;id&gt;giturl.com:1234&lt;/id&gt;
    &lt;username&gt;git&lt;/username&gt;
    &lt;privateKey&gt;C:/data/home/.ssh/id_rsa&lt;/privateKey&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>However, I seem not to be able to get past the server fingerprint checking. Some very vague and obscure sources seem to suggest that I can provide a <code>&lt;server&gt; &lt;configuration&gt; &lt;knownHostsProvider&gt;</code> section, but I seem not be able to get it right. I would expect that I can do something like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;knownHostsProvider implementation="org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider"&gt;
        &lt;hostKeyChecking&gt;no&lt;/hostKeyChecking&gt;
      &lt;/knownHostsProvider&gt;
  </code></pre>
  
  <p>I was expecting the hostkey checking to be ignored, but unfortunately my <code>mvn release:prepare</code> failed for that exact reason.</p>
  
  <p>Should I give up, and revert back to svn to manage my regular maven releases? I am about to do exactly this ...</p>