It is a weird example, but based on the code, the property should be in
timestamp format. For example:
<project.build.outputTimestamp>2021-07-17T01:02:00Z</project.build.outputTimestamp>
Now, this is not a constant, so it could not be added to the pom.xml
directly like this. Your CI could pass this to the build from command line.
There is also a property called maven.build.timestamp, I wonder if that can
be used here since based on docs it is
*the UTC timestamp of build start, in yyyy-MM-dd'T'HH:mm:ss'Z' default
format *
So,
<project.build.outputTimestamp>${maven.build.timestamp}</project.build.outputTimestamp>might work. la 17. heinäk. 2021 klo 3.55 Maxim Solodovnik ([email protected]) kirjoitti: > Hello All, > > I'm a bit confused with documentation > > This [1] guide instruct me to set > <project.build.outputTimestamp>1</project.build.outputTimestamp> > and add > <notimestamp>true</notimestamp> > to javadoc configuration in pluginManagement > > as a result I'm getting > > Caused by: java.time.format.DateTimeParseException: Text '1' could not be > parsed at index 0 > at java.time.format.DateTimeFormatter.parseResolved0 > (DateTimeFormatter.java:2046) > at java.time.format.DateTimeFormatter.parse > (DateTimeFormatter.java:1874) > at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.getBottomText > (AbstractJavadocMojo.java:3007) > at > > org.apache.maven.plugins.javadoc.AbstractJavadocMojo.addStandardDocletOptions > (AbstractJavadocMojo.java:5549) > > and this seems to be "by design" [2]: > > Shall I specify some additional custom property? (bottom?) > or maybe outputTimestamp should be set to some other value? > > and documentation definitely need to be updated :((( > > [1] https://maven.apache.org/guides/mini/guide-reproducible-builds.html > [2] > > https://github.com/apache/maven-javadoc-plugin/blob/master/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L3004 > > -- > Best regards, > Maxim >
