Maven Timestamp Support: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
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=

Latest revision as of 18:50, 16 November 2016

External

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".