If you package your application in a jar using the maven-jar-plugin or the maven-assembly-plugin, an easy way to get the current pom version is to add an entry in the manifest, which is then available from Java.
The secret is to set the addDefaultImplementationEntries flag to true (and the addDefau...