I\'ve a Java project using Spring Framework and Git and I wanted to display a build number. I found the Build Number Maven plugin. With Git the build number is a Git hash. I
Store it in a filtered properties file. See Using maven to output the version number to a text file