git version at runtime and packaging

I was not able to generate the at the beginning. somehow turns out it was due to a missing version for the plugin.

                <version>4.0.5</version> <!--need to add the specific version-->

with that, at packaging, it could generate the package with the SHA.


the package name like ABC-1.0-7X7X40a-SNAPSHOT.jar

at runtime, with spring actuator enabled, it could auto pick up the commit info:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s