Include git properties in packaged jar with maven-git-commit-id-plugin
- https://github.com/git-commit-id/git-commit-id-maven-plugin
- https://git.gesis.org/maven/archetypes/jar/-/blob/master/src/main/resources/archetype-resources/pom.xml#L70
mvn clean -DskipTests package
cd target
unzip rest-additions-5.9.4-SNAPSHOT.jar git.properties
cat git.properties | grep git.commit.id.abbrev
Edited by Alexander Mühlbauer