繁体   English   中英

带有 git + 开发人员连接的 Maven 发布插件

[英]Maven release plugin with git + developer connection

我正在尝试使用 maven 发布插件从主干创建一个分支。

前任。 存储库.git/ child1/ child2/

该插件创建了一个包含我的整个存储库的新分支。 我如何限制它创建一个只包含 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 的绝对路径来实现这一点。

谢谢,

加亚特里

使用 Git 发布多模块 maven 项目有帮助 + 你需要升级到 2.3.2 版本的 maven-release-plugin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM