让 jgitver 使用标签

问题描述

在以下场景中,我希望 jgitver 使用版本 4.2.4-rc3-SNAPSHOT(最后一个轻量级标签 + SNAPSHOT)。然而,这不会发生。

[DEBUG] jgitver calculated version number: 4.2.4-SNAPSHOT
[DEBUG] setting property jgitver.calculated_version with "4.2.4-SNAPSHOT"
[DEBUG] setting property jgitver.dirty with "true"
[DEBUG] setting property jgitver.head_committer_name with "Roberto Morávia"
[DEBUG] setting property jgitver.head_commiter_email with "roberto.moravia@agency"
[DEBUG] setting property jgitver.head_commit_datetime with "Fri Apr 9 15:46:54 2021 +0100"
[DEBUG] setting property jgitver.git_sha1_full with "e4c8f3459a633ba607b0a8bc76eee37323aa2"
[DEBUG] setting property jgitver.git_sha1_8 with "e4c8f345"
[DEBUG] setting property jgitver.branch_name with ""
[DEBUG] setting property jgitver.head_tags with ""
[DEBUG] setting property jgitver.head_annotated_tags with ""
[DEBUG] setting property jgitver.head_lightweight_tags with ""
[DEBUG] setting property jgitver.head_version_tags with ""
[DEBUG] setting property jgitver.head_version_annotated_tags with ""
[DEBUG] setting property jgitver.head_version_lightweight_tags with ""
[DEBUG] setting property jgitver.base_tag with "4.2.4-rc3"
[DEBUG] setting property jgitver.base_tag_type with "LIGHTWEIGHT"
[DEBUG] setting property jgitver.all_tags with "4.2.4-rc3,4.2.4-rc2,4.2.3-RC1,4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_annotated_tags with "4.2.3-RC1,4.0.0"
[DEBUG] setting property jgitver.all_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.all_version_tags with "4.2.4-rc3,4.0.0"
[DEBUG] setting property jgitver.all_version_annotated_tags with "4.2.3,4.0.0"
[DEBUG] setting property jgitver.all_version_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.next_major_version with "5.0.0"
[DEBUG] setting property jgitver.next_minor_version with "4.3.0"
[DEBUG] setting property jgitver.next_patch_version with "4.2.4"
[DEBUG] setting property jgitver.base_version with "4.2.4-rc3"
[DEBUG] setting property jgitver.commit_distance with ""

为什么它不使用标签,我怎样才能让它使用它? 这里的目标是在标记分支后,来自该分支的任何提交都使用该标记,即使签出作为提交哈希也是如此。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...