I\'d like to put revision number on main page of webapp, how can i do that using maven?
P.S. Its two part question, how to get revision number and how to write it in
You don't say what platform you are using, and you'll pardon me for being unfamiliar with maven. I am supposing it can invoke external programs, and you know how to make it do this.
If on a Unix platform, you should use the program svnversion command, and pipe its output - which is the version number of the working path specified - to a file, which you can then incorporate into your web page as you see fit.
svnversion --help
shows what it can do in detail.
If it is Windows, and you are using TortoiseSVN client, then there is an excellent Windows command line program bundled with it called SubWCRev. This utility will expand macros in a text file you supply with various details of the svn repository you are using - you get to control the format of the output. All very convenient. The help file for this is here: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html