我正在尝试使用我的本地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中定义本地仓库的正确方法吗?
答案 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的投入。