title: Maven Release Plugin - Access denied
body: <p>I'm trying to configure Maven Release Plugin for a multi model project which has the following modules: parent, Model, WebApplication, WebServices.</p>
  
  <p>I've made the plugin work for a simple project as a test, but for this project I've not been able to.</p>
  
  <p>parent\pom.xml</p>
  
  <pre><code>     ....
          &lt;version&gt;2.4.1-SNAPSHOT&lt;/version&gt;
          .....
          &lt;distributionManagement&gt;
              &lt;repository&gt;
                  &lt;id&gt;release&lt;/id&gt;
                  &lt;url&gt;file://git.comapany.ro/dragos.geornoiu/test.git&lt;/url&gt;
              &lt;/repository&gt;
          &lt;/distributionManagement&gt;
          &lt;scm&gt;connection&gt;scm:git:git@git.company.ro:dragos.geornoiu/test.git&lt;/connection&gt;&lt;/scm&gt;
     ....
     &lt;extensions&gt;
              &lt;extension&gt;
                  &lt;groupId&gt;org.apache.maven.wagon&lt;/groupId&gt;
                  &lt;artifactId&gt;wagon-ftp&lt;/artifactId&gt;
                  &lt;version&gt;2.8&lt;/version&gt;
              &lt;/extension&gt;
      &lt;/extensions&gt;
      &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &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.2&lt;/version&gt;
              &lt;/plugin&gt;
      ....
      &lt;/plugins&gt;
  </code></pre>
  
  <p>The oher modules take the version from the parent pom:</p>
  
  <pre><code>&lt;parent&gt;
          ...
          &lt;version&gt;2.4.1-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>I run mvn release:prepare from the parent module. </p>
  
  <p>The plugin asks for the new versions of each module and the new version for development. It changes the version from 2.4.1-SNAPSHOT to 2.4.1, creates a local tag, but stops there. The tag isn't pushed and the development version isn't changed to 2.4.2-SNPASHOT.</p>
  
  <pre><code>[ERROR] Provider message:
  [ERROR] The git-push command failed.
  [ERROR] Command output:
  [ERROR] Access denied.
  [ERROR] fatal: Could not read from remote repository.
  [ERROR]
  [ERROR] Please make sure you have the correct access rights
  [ERROR] and the repository exists.
  </code></pre>
  
  <p>I am connecting with ssh to the remote and have tested commit, push and creating a tag from the parent module, all of them work just fine (since I am not getting a permission denied or something similar, I don't think this is a problem). Also, the plugin manages to make a push after changing the version to 2.4.1 (removing SNAPSHOT).</p>
  
  <p>I've tried looking with -X parameter, but cant' figure what I'm doing wrong.</p>