diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-01 17:16:42 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-01 17:16:42 +0700 |
commit | 0cba9d10b7a4987af5654e3e1fa84c7f76745e23 (patch) | |
tree | 24075de2ffcffaeefb2072ff239f35fdaa773284 | |
parent | bce5e2d49bcf2ecf4d542c11dd84056e03ac87eb (diff) | |
download | aspectj-0cba9d10b7a4987af5654e3e1fa84c7f76745e23.tar.gz aspectj-0cba9d10b7a4987af5654e3e1fa84c7f76745e23.zip |
Workaround for non-English javadoc generation
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 <Alexander@Kriegisch.name>
-rw-r--r-- | pom.xml | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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> |