build-helper:timestamp-property
Full name:
org.codehaus.mojo:build-helper-maven-plugin:3.6.1: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 |
- |
The property to set. |
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<locale> |
String |
- |
The locale to use, for example en,US. |
<offset> |
int |
- |
An offset to apply to the current time. Default: 0 |
<pattern> |
String |
- |
The date/time pattern to be used. The values are as defined by the Java SimpleDateFormat class. |
<timeSource> |
String |
3.2.0 |
The source of the time. Valid Values are
Default: current |
<timeZone> |
String |
- |
The timezone to use for displaying time. The values are as defined by the Java {$link TimeZone} class. Default: GMT |
<unit> |
String |
- |
The unit of the offset to be applied to the current time. Valid Values are
Default: second |
Parameter Details
<locale>
The locale to use, for example
en,US.- Type:
java.lang.String - Required:
No
<name>
The property to set.
- Type:
java.lang.String - Required:
Yes
<offset>
An offset to apply to the current time.
- Type:
int - 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 - Required:
No
<timeSource>
The source of the time. Valid Values are
- current
- build
- Type:
java.lang.String - Since:
3.2.0 - Required:
No - Default:
current
<timeZone>
The timezone to use for displaying time. The values are as defined by the Java {$link TimeZone} class.
- Type:
java.lang.String - 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 - Required:
No - Default:
second

