Fork me on GitHub

buildnumber:create-timestamp

Full name:

org.codehaus.mojo:buildnumber-maven-plugin:1.4: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.

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
skip boolean 1.3 Whether to skip this execution.
Default value is: false.
User property is: maven.buildNumber.skip.
timestampFormat String 1.0-beta-5 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 1.0-beta-5 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 1.0-beta-5 The timezone of the generated timestamp. If blank will default to TimeZone.getDefault()
User property is: maven.buildNumber.timestampTimeZone.

Parameter Details

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
  • Since: 1.0-beta-5
  • 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
  • Since: 1.0-beta-5
  • Required: No
  • User Property: maven.buildNumber.timestampPropertyName
  • Default: timestamp

timezone:

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