I am creating Java components through a maven build. I would like to have JMX bean for them to output the svn revision and the branch and perhaps the checkout and build date (so monitoring tool can keep a look at it)
Any suggestions how to do this. I guess I would need some sort of SVN hooks for this.
You could add the
svn:keywordsProperty to your source file.Example:
Inside your MyClass.java:
The result will look like this on each commit: