本地 GIT 存储库的 SCM URL

SCM URL of local GIT repo

我正在尝试使用本地 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 中定义本地回购的正确方法吗?

终于成功了。因为我在 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>

感谢@wemu 的意见。