Repository navigation
Conversation
Declare the property in the root pom.xml. Builds inherited the value of the Apache parent POM, and maven-release-plugin only sets it to the release time when the project declares it. Signed-off-by: Richard Zowalla <rzo1@apache.org>
FOP writes the build time and a random ID into the PDF. Replace them after rendering with project.build.outputTimestamp and a checksum of the content. The values keep their length, so the offsets in the PDF stay valid. Run Maven in UTC (.mvn/jvm.config), because FOP writes the time zone with a length that depends on it. Signed-off-by: Richard Zowalla <rzo1@apache.org>
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1724.
Declares
project.build.outputTimestampin the rootpom.xml, somaven-release-pluginsets it to the release time; until now builds inherited the date of the Apache parent POM. Two clean builds now give identical jars, source and binary archives, including the PDF manual built in different time zones.The PDF needs a workaround: it is rendered by
docbkx-maven-plugin2.0.17, which is no longer maintained and is bound to FOP 1.1. FOP 1.1 writes the build time and a random document ID into every PDF, with no option to set them, and FOP 2.x cannot be used, because it removedFopFactory.newInstance()andsetUserConfig(Configuration), which docbkx calls. Anantrunstep inopennlp-docstherefore replaces the dates withproject.build.outputTimestampand the ID with a checksum of the content; the values keep their length, so the offsets in the PDF stay valid..mvn/jvm.configruns Maven in UTC, because FOP writes the time zone as+01'00'orZ, with a length that depends on the machine. Moving the manual to a maintained format in the long run, for example AsciiDoc as used by the website, would remove docbkx, FOP 1.1 and this step.