jgitver-maven-plugin icon indicating copy to clipboard operation
jgitver-maven-plugin copied to clipboard

Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property

Open kebeda opened this issue 2 years ago • 1 comments

Issue

version: 1.9.0

usage context: mvn validate

  • [x] maven command line: 3.8.5

Problem description:

Using strategy=PATTERN and defining in the jgitver.config.xml:

<versionPattern>${v}${-~meta.QUALIFIED_BRANCH_NAME}${+~meta.COMMIT_DISTANCE_TO_ROOT}</versionPattern>

Never results in the the COMMIT_DISTANCE_TO_ROOT property being populated, even when useCommitDistance is true.

How to get this information into a Maven property?

kebeda avatar Mar 24 '22 19:03 kebeda

Hmmm...it appears that meta.COMMIT_DISTANCE also isn't exposed as a maven property...will need to add this too @McFoggy.

kebeda avatar Mar 25 '22 16:03 kebeda