Skip to content

Commit

Permalink
Workaround for non-English javadoc generation
Browse files Browse the repository at this point in the history
On my workstation, more recent JDKs generate partly German javadocs.

Background: Avoid non-English javadoc generation. Due to
https://bugs.openjdk.org/browse/JDK-8222793 reoccurring at least in JDKs
19-21 and also being broken in some older JDKs, we cannot rely on just
setting the locale parameter, but also need the 'user.language' and
'user.country' parameters in 'additionalJOptions' as a workaround.

Signed-off-by: Alexander Kriegisch <[email protected]>
  • Loading branch information
kriegaex committed Feb 1, 2024
1 parent bce5e2d commit 0cba9d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,18 @@
<use>true</use>
<!-- FIXME: Why does it fail without this parameter? -->
<javadocVersion>8</javadocVersion>
<!--
Avoid non-English javadoc generation. Due to https://bugs.openjdk.org/browse/JDK-8222793 reoccurring at
least in JDKs 19-21 and also being broken in some older JDKs, we cannot rely on just setting the locale
parameter, but also need the 'user.language' and 'user.country' parameters in 'additionalJOptions' as a
workaround.
-->
<locale>en</locale>
<additionalJOptions>
<additionalJOption>-J-Dfile.encoding=UTF-8</additionalJOption>
<additionalJOption>-J-Duser.language=en</additionalJOption>
<additionalJOption>-J-Duser.country=US</additionalJOption>
</additionalJOptions>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 0cba9d1

Please sign in to comment.