2

I use Maven to create builds. Always takes time and produce many errors to find which last revision number was included in the build. I was thinking of something like:

 svn update >output.txt

The last line will include revision number. But this solution doesn't seem very useful. Does exist may be mvn plugin that does update from SVN and make build and write may be in some properties file: revision, build number of libraries in projects, etc.?

mrembisz
  • 12,722
  • 7
  • 36
  • 32
user710818
  • 23,228
  • 58
  • 149
  • 207
  • possible duplicate of [Getting the last revision number in SVN?](http://stackoverflow.com/questions/579196/getting-the-last-revision-number-in-svn) – bahrep Aug 20 '15 at 10:56

2 Answers2

4

You should be looking at Build Number Maven Plugin. This meets some of your requirements.

Raghuram
  • 51,854
  • 11
  • 110
  • 122
1
svn info --xml

Parse xml from output and retrieve revision number

jenk
  • 1,043
  • 7
  • 8