Deriving maven artifact version from git branch

前端 未结 7 2046
眼角桃花
眼角桃花 2020-12-12 11:07

We have a workflow requirement that essentially mean that we need to have the artifact version of a module externally defined from the current branch in git.

I.e. if

7条回答
  •  借酒劲吻你
    2020-12-12 11:24

    Disclaimer: I am the author

    My maven core extension will virtually set the version based on the current branch or tag. You can config custom version format patterns as you like.

    https://github.com/qoomon/maven-branch-versioning-extension

    Version Format Example

提交回复
热议问题