我正在尝试在我的项目上执行 mvn release:prepare 并且它一直运行到它尝试提交标签的最后,然后它失败了:
[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://git@github.com/terraframe 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
失败的特定 git 命令是:
git push ssh://git@github.com/terraframe v1.8.0
这是我在 runwaysdk-main pom 中的 scm 定义:
<scm>
<connection>scm:git:ssh://git@github.com/terraframe/Runway-SDK.git</connection>
<developerConnection>scm:git:ssh://git@github.com/terraframe/Runway-SDK.git</developerConnection>
<url>scm:git:ssh://git@github.com/terraframe/Runway-SDK.git</url>
</scm>
tldr:我的 repo url 定义为scm:git:ssh://git@github.com/terraframe/Runway-SDK.git
但是这个 git push 命令正在尝试推送到ssh://git@github.com/terraframe
.
为什么?我该如何解决?
编辑:
我在具有平面项目结构的多模块的父 pom (runwaysdk-main) 上执行此操作:
github.com/terraframe/Runway-SDK
/runwaysdk-main
/runwaysdk-common
/runwaysdk-client
/runwaysdk-server
我正在使用最新版本的 maven-release-plugin 2.4.1。