本地GIT存储库的SCM URL

xqnpmsa8  于 2023-05-15  发布在  Git
关注(0)|答案(1)|浏览(228)

我正在尝试用我的本地git仓库测试mvn发布插件。我收到错误未提供SCM URL以执行从的发布,尽管父pom具有以下详细信息

<scm>
    <url>scm:git:file://localhost/d/Research/Research.git</url>
    <connection>scm:git:file://localhost/d/Research/Research.git</connection>
    <developerConnection>scm:git:file://localhost/d/Research/Research.git</developerConnection>
</scm>

这是在mvn中定义本地存储库的正确方法吗?

tag5nh1u

tag5nh1u1#

终于让它工作了。因为我在Windows上使用了下面的SCM标记

<scm>
  <url>scm:git:file://d:/Research/.git</url>
  <connection>scm:git:file://d:/Research/.git</connection>
  <developerConnection>scm:git:file://d:/Research/.git</developerConnection>
</scm>

感谢@wemu的意见。

相关问题