gpt4 book ai didi

maven-2 - 更新 maven 多模块项目的位置 scm url

转载 作者:行者123 更新时间:2023-12-04 15:05:10 33 4
gpt4 key购买 nike

我有一个 Maven 多模块项目。如果我需要分支,我使用 maven-versions 插件来浏览我的项目并相当容易地更新父版本号。是否有类似的插件可以更新我所有 pom 中的 scm 位置?

最佳答案

为什么不使用 Maven Release Plugin及其 release:branch 魔力吗?来自 Create a branch页:

Creating a branch executes the following steps:

  • Check that there are no uncommitted changes in the sources
  • Change the version in the poms if you want to change it in the branch (you will be prompted for the versions to use)
  • Transform the SCM information in the POM to include the final destination of the tag
  • Commit the modified POMs
  • Tag the code in the SCM as a new branch with a version name (this will be prompted for)
  • Bump the version in the POMs if you want to change it to a new value y-SNAPSHOT (these values will also be prompted for)
  • Commit the modified POMs

关于maven-2 - 更新 maven 多模块项目的位置 scm url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2168615/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com