gitmavenmaven-release-pluginbuildnumber-maven-plugin

git with maven-release-plugin and buildnumber-maven-plugin


When perform release I try to store the value of ${scmBranch} from buildnumber-maven-plugin to MANIFEST.MF file in my jar. But value is "UNKNOWN" and

.../target/checkout/git branch

say:

* (no branch)

revision same as tag revision.

What to do with it?


Solution

  • Change release goals to

    -Dresume=false release:prepare release:perform -Darguments='-DscmBranch=${BRANCH}'
    

    solve problem.