amit,
You can use the same Nick suggestion using two execution tags to same plugin
tag. Try this:
org.codehaus.mojo
buildnumber-maven-plugin
0.9.6
generate-buildnumber
validate
Thanks Nick. This works to me. Now I have two variables: a build number and a
human readable current date. I only modified your suggestion setting up a
new name for the variables in each execution using "buildNumberPropertyName"
tag:
org.codehaus.mojo
buildnumber-
I am inheriting the ${build.directory} property from the root project and
then in children projects i am trying to give the as -
${buildNumber} but its taking the format same as I defined in the root pom.
Any ideas?
Amit
On Tue, Apr 29, 2008 at 2:50 PM, amit kumar <[EMAIL PROTECTED]>
wrote
Can I have two separate variables containing build number values in
different format?
Actually want to use build number for both the build directory name and the
time stamp in jar file names.
so a buildnumber with format MM-DD- be the build directory name
and MM-DD--HH-mm gets appended to t
Thank you for your suggestion,
but it seems not working correcttly for the bug of this plugin.
the results as below:
[buildnumber:create {execution: generate-buildnumber}]
Storing buildNumber: 16 at timestamp: 1205242293453
[buildnumber:create {execution: generate-timestamp}]
Storing buildNumber:
ick S.
-Original Message-
From: Rex Huang [mailto:[EMAIL PROTECTED]
Sent: Tue 3/11/2008 13:27
To: Maven Users List
Subject: Re: how to use buildnumber-maven-plugin
how can I use both buildNumber and timestamp?
but I had just set the buildNumber as below:
org.codehaus
how can I use both buildNumber and timestamp?
but I had just set the buildNumber as below:
org.codehaus.mojo
buildnumber-maven-plugin
validate
create
Rex Huang wrote:
when I use buildnumber-maven-plugin,
it generate the buildnumber as below:
buildNumber: 137261 at timestamp: 1204813937453
but I want to change the timestamp's format, configuration as below:
org.codehaus.mojo
buildnumber-maven-plugin