Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get maven to "stamp" a build number into a properties file

Tags:

maven-2

I would like to be able to, as part of a maven build, set the build number (doesn't matter exactly what) in a properties file/class (so I can show it in a UI). Any ideas?

like image 771
Michael Neale Avatar asked Sep 23 '08 11:09

Michael Neale


1 Answers

We used the Build Number Plugin now available from Codehaus. It can generate a sequential build number or allows you to use the time stamp.

like image 63
Brian Matthews Avatar answered Sep 21 '22 12:09

Brian Matthews