How to get revision number from subversion using maven?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)