本地GIT存储库的SCM URL

Bob*_*der 6 git maven maven-release-plugin

我正在尝试使用本地git repo测试mvn版本插件。我收到错误消息 即使父pom具有以下详细信息未提供SCM URL来执行发布

<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>
Run Code Online (Sandbox Code Playgroud)

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

Bob*_*der 5

最终设法使其工作。正如我在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>
Run Code Online (Sandbox Code Playgroud)

感谢@wemu的输入。