Deriving maven artifact version from git branch

前端 未结 7 2037
眼角桃花
眼角桃花 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:23

    Have you checked the buildnumber-maven-plugin which gives you the opportunity to use the revision number of git. But you needed something different. Furthermore i would suggest to do a thing like:

       1.0.0-SNAPSHOT 
       1.0.0-SNAPSHOT 
    

    beeing on master

    on a branch you can simple change the version to

      1.0.0-BF-SNAPSHOT 
    

提交回复
热议问题