Michael Neale
Michael Neale

Reputation: 19468

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

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?

Upvotes: 10

Views: 4306

Answers (3)

Chad
Chad

Reputation:

I use the maven-property-plugin to store the CruiseControl build label in a properties file (the build label is is available as a system property named 'label').

A post on how to do this with Hudson.

Upvotes: 0

mdb
mdb

Reputation: 52829

The Maven build number plugin should do what you want.

Upvotes: 2

Brian Matthews
Brian Matthews

Reputation: 8596

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.

Upvotes: 7

Related Questions