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

default regexVersionTag does not handle "v1.0.0-RC1" correctly on 2nd commit

Open lbayle opened this issue 1 year ago • 0 comments

version: 1.9.0

usage context:

  • [] maven command line: 3.9.6

Problem description:

the default regex has (?:-[a-zA-Z0-9\\-_]+)? inside the capture group. This is nice for RC. But it works only on the commit that is tagged. on next commits, the RC has vanished !

UseCase:

git tag "1.2.0-RC1"
mvn validate
# ==> Building my-app 1.2.0-RC1-SNAPSHOT
touch foobar.txt && git add foobar.txt && git commit -m "add foobar"
mvn validate
# ==> Building my-app 1.2.0-SNAPSHOT

where is -RC1 ???

lbayle avatar Dec 03 '23 22:12 lbayle