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

473 Views Asked by At

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?

1

There are 1 best solutions below

0
burtsevyg On BEST ANSWER

Change release goals to

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

solve problem.