The maven build number plugin is the way to go. An example of how to use it is here:
http://www.mojohaus.org/buildnumber-maven-plugin/usage.html
You would use this together with the maven jar plugin to print the SVN commit number to your
manifest.
This is a better solution than using a file that contains the SVN commit number, because that adds more moving parts than is really necessary.