简体   繁体   English

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

[英]Maven release plugin with git + developer connection

I am trying to use maven release plugin for creating a branch from trunk.我正在尝试使用 maven 发布插件从主干创建一个分支。

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

The plugin creates a new branch that contains my entire repository.该插件创建了一个包含我的整个存储库的新分支。 How can i restrict it to create a branch that contains only child1 ?我如何限制它创建一个只包含 child1 的分支?

Currently the pom.xml connection, developer connection and url are as follows :目前 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>

In svn we used to achieve this by using the absolute path to child1 in developerConnection.在 svn 中,我们曾经通过使用 developerConnection 中 child1 的绝对路径来实现这一点。

Thanks,谢谢,

Gayathri加亚特里

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

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

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