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

标签 git maven maven-release-plugin

我正在尝试使用 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/

相关文章:

git - 远程分支既落后又领先于主分支

java - 多模块应用程序maven

git - 如何导出 git stash

maven - 使用Gradle找不到slf4j LoggerFactory类定义

java - Spring 4.x 与 Spring Integration 4.X ClassLoader 问题

java - Scala和Maven项目的执行

java - 无法使用 jasypt 加密进行 Maven 发布

maven-release-plugin - Maven 发布插件 - 多模块项目 - 版本 :prepare - Why I see SKIPPED for child modules though BUILD IS SUCCESSFUL

android - 从 AOSP 编译电子邮件应用程序

git - 无法在终端中显示 Git 树