Failed to execute goal org.apache.maven.plugins:maven-release-plugin; Unable to tag SCM
07:04 10 Mar 2017

I'm using the maven-release-plugin to prepare releases for my project.

I added the plugin like this:

    
            org.apache.maven.plugins
            maven-release-plugin
            2.5.3
    

And the Git repo is set up like this:

  
    http://my-repo.com:7990/projects/repos/my-project
    scm:git:ssh://git@my-repo.com:7999/wrap/my-project.git
    scm:git:ssh://git@my-repo.com:7999/wrap/my-project.git
    my-project-1.1
  

However, when I am running this:

  mvn release:prepare

I am getting this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project my-project: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Permission denied (publickey).
[ERROR] fatal: Could not read from remote repository.
[ERROR] 
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
git maven