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
If it is sufficient to set the git tag and version information in the artifact file name, you can use maven-jgit-buildnumber-plugin:
${artifactId}-${git.buildnumber} ru.concerteza.buildnumber maven-jgit-buildnumber-plugin 1.2.7 git-buildnumber extract-buildnumber prepare-package