本地GIT仓库的SCM URL

时间:2017-11-20 21:43:48

标签: git maven maven-release-plugin

我正在尝试使用我的本地git repo测试mvn发布插件。我收到了错误 未提供SCM网址以执行发布,即使父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中定义本地仓库的正确方法吗?

1 个答案:

答案 0 :(得分:2)

最终成功实现了它。因为我在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的投入。