I'm trying to learn more about how big project builds are being versioned by developer teams using maven. For example, some projects have versions like: 2.0.0-SNAPSHOT-g57517b7, what that "g57517b7" represents exactly? and is it possible to automate versioning process that increments those number or some kind of build number on maven?
Asked
Active
Viewed 97 times
4
-
A version number like that is typically a version control fingerprint; e.g. the first part of a git commit checksum. So `2.0.0-SNAPSHOT-g57517b7` is likely to represent a prerelease (i.e. SNAPSHOT) build for 2.0.0 corresponding to commit `g57517b7`. – Stephen C Feb 11 '23 at 03:52
1 Answers
1
The last part of the version name looks like a current git commit id. Have a look here Include git commit hash in jar version

Mutaev
- 17
- 5