Fork me on GitHub

buildnumber:create-timestamp

Full name:

org.codehaus.mojo:buildnumber-maven-plugin:3.1.0:create-timestamp

Description:

This mojo is designed to give you a timestamp available through one or more properties. Only a single timestamp is created for each execution of the mojo. This timestamp can be format into one or more strings which are then saved to properties. create a timestamp property

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.0-beta-5.
  • Binds by default to the lifecycle phase: initialize.

Optional Parameters

Name Type Since Description
<executeRootOnly> boolean - Execute this only once in root project of a multi module build.
Default value is: false.
<skip> boolean 1.3 Whether to skip this execution.
Default value is: false.
User property is: maven.buildNumber.skip.
<timestampFormat> String - Apply this java.text.SimpleDateFormat to the timestamp. By default, no formatting is done but the raw number value (milliseconds since January 1, 1970, 00:00:00 GMT) is used.
User property is: maven.buildNumber.timestampFormat.
<timestampPropertyName> String - You can rename the timestamp property name to another property name if desired.
Default value is: timestamp.
User property is: maven.buildNumber.timestampPropertyName.
<timezone> String - The timezone of the generated timestamp. If blank will default to java.util.TimeZone.getDefault()
User property is: maven.buildNumber.timestampTimeZone.

Parameter Details

<executeRootOnly>

Execute this only once in root project of a multi module build.
  • Type: boolean
  • Required: No
  • Default: false

<skip>

Whether to skip this execution.
  • Type: boolean
  • Since: 1.3
  • Required: No
  • User Property: maven.buildNumber.skip
  • Default: false

<timestampFormat>

Apply this java.text.SimpleDateFormat to the timestamp. By default, no formatting is done but the raw number value (milliseconds since January 1, 1970, 00:00:00 GMT) is used.
  • Type: java.lang.String
  • Required: No
  • User Property: maven.buildNumber.timestampFormat

<timestampPropertyName>

You can rename the timestamp property name to another property name if desired.
  • Type: java.lang.String
  • Required: No
  • User Property: maven.buildNumber.timestampPropertyName
  • Default: timestamp

<timezone>

The timezone of the generated timestamp. If blank will default to java.util.TimeZone.getDefault()
  • Type: java.lang.String
  • Required: No
  • User Property: maven.buildNumber.timestampTimeZone