view raw
Ring Ring - 6 months ago 60
Git Question

Maven Release Plugin Pushing Tags To Wrong Repo

I'm trying to execute a mvn release:prepare on my project and it runs up until the very end where it tries to commit the tag then it fails:

[INFO] Tagging release with the label v1.8.0...
[INFO] Executing: /bin/sh -c cd /Users/terraframe/Documents/workspace/Runway-SDK && git tag -F /var/folders/tY/tY5PnSNPED0Yr7FtapST2++++TI/-Tmp-/maven-scm-864030210.commit v1.8.0
[INFO] Working directory: /Users/terraframe/Documents/workspace/Runway-SDK
[INFO] Executing: /bin/sh -c cd /Users/terraframe/Documents/workspace/Runway-SDK && git push ssh:// v1.8.0


Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project runwaysdk-main: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] ERROR: Repository not found.
[ERROR] fatal: The remote end hung up unexpectedly

The specific git command that fails is:

git push ssh:// v1.8.0

Here's my scm definition in my runwaysdk-main pom:


tldr: My repo url is defined as

Yet this git push command is trying to push to

Why? And how do I fix it?


I am executing this on a parent pom (runwaysdk-main) of a multi-module with a flat project structure:

I am using the latest version of the maven-release-plugin, 2.4.1.


I think you're hitting As a workaround, you could use version 2.3.2 of the maven-release-plugin