burtsevyg
burtsevyg

Reputation: 4086

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?

Upvotes: 1

Views: 482

Answers (1)

burtsevyg
burtsevyg

Reputation: 4086

Change release goals to

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

solve problem.

Upvotes: 1

Related Questions