Closed replay111 closed 4 years ago
I almost found it - my configuration looks like this:
<configuration xmlns="http://jgitver.github.io/maven/configuration/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.0.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_0_0.xsd ">
<useGitCommitId>true</useGitCommitId>
<gitCommitIdLength>8</gitCommitIdLength>
<mavenLike>false</mavenLike>
</configuration>
but output is like: 0.0.0-sha-branch_name
it could be ok - but is there any way to get rid of this part: "0.0.0"
ok instead of fighting with this plugin I just used mvn versions:set -DnewVersion and mvn versions:commit
Before submitting an issue I have first:
(if you have performed all the above, remove the paragraph and continue describing the issue with template below)
Issue
It is not maybe the issue but my lack of knowledge. I am not sure how to force this plugin to put in version number SHA of commit instead of branch name :(
I wanted to have something like this:
0.0.3-1ab23f-SNAPSHOT
Is that possible?