Maven Timestamp Support: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * http://stackoverflow.com/questions/802677/adding-the-current-date-with-maven2-filtering =Internal= * Maven =Overview= Define the following...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* http://stackoverflow.com/questions/802677/adding-the-current-date-with-maven2-filtering | * Adding the current date with Maven2 filtering http://stackoverflow.com/questions/802677/adding-the-current-date-with-maven2-filtering | ||
=Internal= | =Internal= | ||
Line 20: | Line 20: | ||
... | ... | ||
</project> | </project> | ||
<pre> | </pre> | ||
The timestamp will then be available for replacement and filtering as "release_date". | The timestamp will then be available for replacement and filtering as "release_date". |
Latest revision as of 18:50, 16 November 2016
External
- Adding the current date with Maven2 filtering http://stackoverflow.com/questions/802677/adding-the-current-date-with-maven2-filtering
Internal
Overview
Define the following properties:
<project ...> ... <properties> <maven.build.timestamp.format>MM/dd/yy</maven.build.timestamp.format> <release_date>${maven.build.timestamp}</release_date> </properties> ... </project>
The timestamp will then be available for replacement and filtering as "release_date".