FTR, javadoc is unreproducible directly from the JDK, the output can change
between minor versions because of updates to libraries like jQuery.

In other words, the build from JDK 21.0.1 could be different from JDK
21.0.5 for the jQuery update[1]

[1]: https://bugs.openjdk.org/browse/JDK-8335391


On Wed, Dec 4, 2024 at 5:28 PM <sre4e...@free.fr> wrote:

> Hi,
>
> While investigating reproducibility issues on the javadoc package of a
> package I'm updating I discovered that the maven-javadoc-plugin
> generates lists of packages (passed as @packages argument to javadoc)
> that have an ordering that varies depending on filesystem ordering [1].
>
> That alone would not be a problem as that `packages` file is normally
> not included in the resulting binary packages. But unfortunately several
> javadoc implementations (at least OpenJDK 11 and 21) will sometimes
> produce a slightly different output depending on the ordering of the
> package list as input.
>
> I believe that this should be primarily fixed in javadoc, but that
> sorting the list generated by the maven-javadoc-plugin is also a
> reasonable mitigation that will improve reproducibility when using JDKs
> that haven't been fixed.
>
> Do you think this is worth opening an issue on your tracker?
>
> Best regards,
>
>
> [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089013
>
> --
> Julien Plissonneau Duquène
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

Reply via email to