Closed mmoayyed closed 9 years ago
The plugin records the build job timestamp from timestamp
property resolved by your POM. It seems that you use the same property for some other purpose with incompatible format.
/**
* Build timestamp. Must be in 'yyyy-MM-dd HH:mm:ssa' format.
*/
@Parameter(property = "timestamp", defaultValue = "${timestamp}")
At the moment there is no way to disable the timestamp resolution. This might actually be a problem if you need the timestamp in some other format elshwhere. The following should do the trick for your pom.xml
, and hopefully not break other things.
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssa</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
Additional timestampFormat
property can be used to define any timestamp format. maven.build.timestamp.format
will be used as a default.
Please @trautonen, in pom.xml, where do I have to add these lines? I tried putting them in
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ssa</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
Edit: problem solved removing from the pom.xml the plugin buildnumber-maven-plugin
I have
where the versions are 3.1.0 and 2.7.
I get: