Hi,
You could use the buildnumber-maven-plugin:
http://mojo.codehaus.org/buildnumber-maven-plugin/create-mojo.html. It will
generate a property containing the date and time at build time (the default
value for the name of the property is buildNumber). You can use the property
${buildNumber} after the execution of the phase the plugin is attached with.
Here's an example of how you can configure the plugin:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<configuration>
<format>{0,date,dd/MM/yyyy}</format>
<items>
<item>timestamp</item>
</items>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
Regards,