Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1.0-M1
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
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.
Issue Links
| This issue relates to: | ||||
| MNG-1832 | built-in property containing current timestamp |
|
|
|
| MSHARED-46 | Create a common component for files filtering |
|
|
|
| MNG-2561 | cookbook example: adding build time to a manifest |
|
|
|
| This issue is related to: | ||||
| MNG-3536 | REGRESSION: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore |
|
|
|
| MNG-3070 | ${x} properties no longer expanded in </version> tag after 2.0.3 |
|
|
|
| MNG-3535 | Valid properties which look self referential fail to resolve |
|
|
|
| MRESOURCES-99 | ${project.baseUri} and ${maven.build.timestamp} are not expanded by resource filtering |
|
|
|
| MNGSITE-87 | Document the build timestamp feature |
|
|
|
| This issue depends upon: | ||||
| MNG-1832 | built-in property containing current timestamp |
|
|
|
| This issue is depended upon by: | ||||
| MNG-3718 | Build timestamp interpolator gives hours in AM/PM instead of 24-hour time |
|
|
|
Brett Porter wrote:
I think this issue should focus on merely adding the timestamp property, I think formatting is much better handled by MNG-3374. Reason: I may want to use multiple formats for the same timestamp, for example, UTC and ISO-8601 in the JAR manifest and Europe/Amsterdam with a custom pattern in a common footer JSP.
wrt reactor builds: is it desirable (or even possible) to add the timestamp for every sub-module in addition to the timestamp the build was started? The naming scheme could use Maven coordinates: