How to get revision number from subversion using maven?

前端 未结 4 1321
一生所求
一生所求 2020-12-28 13:10

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

4条回答
  •  抹茶落季
    2020-12-28 13:37

    If you are using subversion, you can use this plugin to make the SVN revision number available as a maven property

    http://code.google.com/p/maven-svn-revision-number-plugin/

    I combine this with jar plugin to add the SVN revision to the MANIFEST.MF file for our jar's and war's.

提交回复
热议问题