Display deployed version on your maven powered Spring application

Sometimes it is useful to have an endpoint that will return your application’s maven build properties.

To set that up, there are only a few steps that need to be followed.

First, define the resource directory.  By default, Maven will look in src/main/resources. Regardless, it is a good idea to add the resources and set filtering to true.

You will need to include Maven resources plugin. Using @ helps with avoiding collisions with Spring placeholders.

Continue reading