【发布时间】:2018-05-04 05:44:04
【问题描述】:
我正在尝试使用我的本地 git repo 测试 mvn release 插件。我收到错误 没有提供 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 中定义本地 repo 的正确方法吗?
【问题讨论】:
-
根据maven.apache.org/scm/git.html 看起来是正确的- .git 后缀有问题吗? url 通常只是一个没有提供者信息的链接:maven.apache.org/pom.html#SCM
-
@wemu ,.git 应该在那里。我检查了我的项目的 pom(它正在使用实际的远程 git repo)在 url 中有 .git。
-
遥控器做得很好。但你指向一个本地目录。并不是说此路径解析与 git 服务器的行为方式不同。只是作为一个实验:)
-
感谢您的意见@wemu。设法让它工作。
标签: git maven maven-release-plugin