File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,16 @@ It's really simple to setup this plugin; below is a sample pom that you may base
366366
367367 <!-- Only consider tags matching the given pattern. This can be used to avoid leaking private tags from the repository. -->
368368 <match >*</match >
369-
369+
370+ <!--
371+ when you run git-describe it only looks only for *annotated tags* by default
372+ if you wish to consider *lightweight tags* in your describe as well you would need to switch this to *true*
373+
374+ The difference between *annotated tags* and *lightweight tags* is outlined in more depth here:
375+ https://github.com/ktoso/maven-git-commit-id-plugin/#git-describe-and-a-small-gotcha-with-tags
376+ -->
377+ <tags >false</tags >
378+
370379 <!--
371380 always print using the "tag-commits_from_tag-g_commit_id-maybe_dirty" format, even if "on" a tag.
372381 The distance will always be 0 if you're "on" the tag.
You can’t perform that action at this time.
0 commit comments