Maven plugin which includes build-time git repository information
...The plugin is available from Maven Central (see here), so you don't have to configure any additional repositories to use this plugin. A detailed description of using the plugin is available in the Using the plugin document. All you need to do in the basic setup is to include that plugin definition in your pom.xml. For more advanced users we also prepared a guide to provide a brief overview of the more advanced configurations. Even though this plugin tries to be compatible with every Maven version there are some known limitations with specific versions.
This repository has 2 releases of 'hello world'. It is used for training purposes. It shows a regular setup with trunk, branches, and tags. Check it out if you need a subversion checkout to mess with.