maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew McCullough (JIRA)" <>
Subject [jira] Commented: (MNG-2562) expose current time as a property for POM interpolation
Date Wed, 01 Jul 2009 23:08:05 GMT


Matthew McCullough commented on MNG-2562:

Per Wendy's last comment captured from benson0 and Jason, I'm after the same thing.  I have
a .properties file that is part of our filtered resources that I want to put the timestamp
into.  If I put ${build.timestamp} into the .properties file it isn't replaced.  I see this
interpolation in the source of the 2.2.0 branch of Maven, which we are using, in the file

Even though I couldn't get it to work "raw", I did find a workaround.  If I put
into the pom.xml and then use ${mytimestamp} in the .properties file, it indeed does expand
to 20090701-1656.

> expose current time as a property for POM interpolation
> -------------------------------------------------------
>                 Key: MNG-2562
>                 URL:
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Inheritance and Interpolation
>            Reporter: Brett Porter
>            Assignee: John Casey
>             Fix For: 2.1.0-M1
> it is useful to have the current time, for example to write out a manifest entry for
the build time or to filter into another file.
> I'm not sure of the best way to make the format of the time configurable - perhaps another
POM element/property.
> See the related issue for a current example of how this can be done, but it would be
nice to have a built-in.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message