开发者

update location scm url for maven multi module project

开发者 https://www.devze.com 2022-12-18 09:01 出处:网络
I have a maven multi module pro开发者_如何学JAVAject. If I need to branch, I use the maven-versions plugin to go through my project and update the parent version number rather easily. Is there a simil

I have a maven multi module pro开发者_如何学JAVAject. If I need to branch, I use the maven-versions plugin to go through my project and update the parent version number rather easily. Is there a similar plugin to update my scm location in all of my poms?


Why don't you use the Maven Release Plugin and its release:branch mojo for that? From the Create a branch page:

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
0

精彩评论

暂无评论...
验证码 换一张
取 消