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
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