Fork me on GitHub

build-helper:timestamp-property

Full name:

org.codehaus.mojo:build-helper-maven-plugin:3.0.0:timestamp-property

Description:

Sets a property based on the current date and time.

Attributes:

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

Required Parameters

Name Type Since Description
name String 1.7 The property to set.

Optional Parameters

Name Type Since Description
locale String 1.7 The locale to use, for example en,US.
offset int 1.7 An offset to apply to the current time.
Default value is: 0.
pattern String 1.7 The date/time pattern to be used. The values are as defined by the Java SimpleDateFormat class.
timeZone String 1.7 The timezone to use for displaying time. The values are as defined by the Java {$link TimeZone} class.
Default value is: GMT.
unit String 1.7 The unit of the offset to be applied to the current time. Valid Values are
  • millisecond
  • second
  • minute
  • hour
  • day
  • week
  • month
  • year

Default value is: second.

Parameter Details

locale:

The locale to use, for example en,US.
  • Type: java.lang.String
  • Since: 1.7
  • Required: No

name:

The property to set.
  • Type: java.lang.String
  • Since: 1.7
  • Required: Yes

offset:

An offset to apply to the current time.
  • Type: int
  • Since: 1.7
  • Required: No
  • Default: 0

pattern:

The date/time pattern to be used. The values are as defined by the Java SimpleDateFormat class.
  • Type: java.lang.String
  • Since: 1.7
  • Required: No

timeZone:

The timezone to use for displaying time. The values are as defined by the Java {$link TimeZone} class.
  • Type: java.lang.String
  • Since: 1.7
  • Required: No
  • Default: GMT

unit:

The unit of the offset to be applied to the current time. Valid Values are
  • millisecond
  • second
  • minute
  • hour
  • day
  • week
  • month
  • year
  • Type: java.lang.String
  • Since: 1.7
  • Required: No
  • Default: second