@otto.poellath,您可以使用配置属性useGitCommitTimestamp
并将其设置为 true ;它仅在non maven
jgitver 模式下可用,因为它与严格的 maven SNAPSHOT 有点冲突。
因此,如果您的.mvn/jgitver.config.xml
配置文件包含以下内容,它将起作用:
<mavenLike>false</mavenLike>
<useGitCommitTimestamp>true</useGitCommitTimestamp>
这是mvn validate
jgitver-maven-plugin 本身使用这种配置的本地输出
H:\jgitver-maven-plugin>mvn validate
[INFO] using jgitver configuration file: H:\jgitver-maven-plugin\.mvn\jgitver.config.xml
[INFO] Scanning for projects...
[INFO] Using jgitver-maven-plugin [1.3.0] (sha1: ef8eec9f820d662e63a84f1210c377183e450cbd)
[INFO] jgitver-maven-plugin is about to change project(s) version(s)
[INFO] fr.brouillard.oss::jgitver-maven-plugin::0 -> 1.3.1-20180710075533-integration
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jgitver Maven Plugin 1.3.1-20180710075533-integration
[INFO] ------------------------------------------------------------------------
...