Thanks Wendy, this approach worked, but I'd to use the buildNumber
property and not the timestamp as I thought I would?
I must be using the wrong format, but I tried few choices and nothing
worked. The time stamp always appears as follow:
[INFO] Storing buildNumber: Apr 16, 2008 at timestamp: 1208394330099
Anyway, here is the code I'm using which is accomplishing what I need:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<format>{0,date}</format>
<items>
<item>timestamp</item>
</items>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Built-By>xyz, Inc.</Built-By>
<Build-date>${buildNumber}</Build-date>
</manifestEntries>
</archive>
</configuration>
</plugin>
-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 16, 2008 3:29 PM
To: Maven Users List
Subject: Re: What is the syntax to retrieve a system property value form
a pom?
On Wed, Apr 16, 2008 at 2:49 PM, Tawfik, Sameh E
<[EMAIL PROTECTED]> wrote:
> I need to update the following parameter with the Build-date value. I
> tried ${env.date} but it did not work?
You can use the Build Number plugin to put the current date into a
property that you can use in the build:
http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]