Hi,
Have a look here : http://mojo.codehaus.org/buildnumber-maven-plugin/
HTH,
--
Olivier
2009/5/5 Allan Ditzel allan.dit...@gmail.com:
Hi all,
I'm trying to do the following:
We're using subversion and we need to extract the revision number of the
working copy and put that in a properties
Thanks Olivier!
That _almost_ does it. If I don't specify format and items then I see
the correct revision printed on screen when the module builds. But I can't
seem to find the right format and items to read the buildNumber in the file.
Here is what I have in my configuration block for the
I've been using this:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuildnumber-maven-plugin/artifactId
version1.0-beta-1/version
executions
execution
phasevalidate/phase
goals
Allan,
In our company we also need to know exact revision number of each file
in project. The proposed buildnumber doesn't suit well, we need
exactly revision numbers!
We have created a custom version of maven-scm-plugin which supports this
feature. I am going to commit patch to maven-scm
Thanks, everyone!
We were finally able to get the resources filtered in our war pom, and the
version is now being inserted into a properties file.
Thanks again!
Allan
On Tue, May 5, 2009 at 5:46 PM, Andrei Solntsev asolnt...@hireright.eewrote:
Allan,
In our company we also need to know