jgitver-maven-plugin
jgitver-maven-plugin copied to clipboard
Need meta.COMMIT_DISTANCE_TO_ROOT exposed as a Maven property
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?
Hmmm...it appears that meta.COMMIT_DISTANCE
also isn't exposed as a maven property...will need to add this too @McFoggy.