我正在尝试使用 maven 发布插件从主干创建一个分支。
例。仓库.git/ child 1/ child 2/
该插件创建了一个包含我的整个存储库的新分支。 我怎样才能限制它创建一个只包含 child1 的分支?
目前pom.xml连接、开发者连接和url如下:
<scm>
<connection>scm:git:ssh://githost/repository.git</connection>
<developerConnection>scm:git:ssh://githost/repository.git</developerConnection>
<url>scm:git:ssh://githost/repository.git</url>
<tag>HEAD</tag>
</scm>
在 svn 中,我们过去常常通过在 developerConnection 中使用 child1 的绝对路径来实现这一点。
谢谢,
加亚特丽
最佳答案
Releasing a multi-module maven project with Git helps + 你需要升级到2.3.2版本的maven-release-plugin
关于git - 带有 git + 开发人员连接的 Maven 发布插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12280992/