|
325 | 325 | <artifactId>maven-compiler-plugin</artifactId>
|
326 | 326 | <version>3.11.0</version>
|
327 | 327 | </plugin>
|
| 328 | + <plugin> |
| 329 | + <groupId>org.apache.maven.plugins</groupId> |
| 330 | + <artifactId>maven-source-plugin</artifactId> |
| 331 | + <version>3.3.0</version> |
| 332 | + </plugin> |
328 | 333 | <plugin>
|
329 | 334 | <groupId>org.apache.maven.plugins</groupId>
|
330 | 335 | <artifactId>maven-javadoc-plugin</artifactId>
|
331 | 336 | <version>3.6.0</version>
|
332 | 337 | <configuration>
|
| 338 | + <quiet>true</quiet> |
333 | 339 | <!-- Amend mojo-parent default config, avoiding errors concerning modules vs. unnamed module packages -->
|
334 | 340 | <source>8</source>
|
335 | 341 | <!-- Reproducible builds, https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
|
336 | 342 | <notimestamp>true</notimestamp>
|
| 343 | + <!-- |
| 344 | + Avoid non-English javadoc generation. Due to https://bugs.openjdk.org/browse/JDK-8222793 reoccurring at |
| 345 | + least in JDKs 19-21 and also being broken in some older JDKs, we cannot rely on just setting the locale |
| 346 | + parameter, but also need the 'user.language' and 'user.country' parameters in 'additionalJOptions' as a |
| 347 | + workaround. |
| 348 | + --> |
| 349 | + <locale>en</locale> |
| 350 | + <additionalJOptions> |
| 351 | + <additionalJOption>-J-Dfile.encoding=UTF-8</additionalJOption> |
| 352 | + <additionalJOption>-J-Duser.language=en</additionalJOption> |
| 353 | + <additionalJOption>-J-Duser.country=US</additionalJOption> |
| 354 | + </additionalJOptions> |
337 | 355 | </configuration>
|
338 | 356 | </plugin>
|
339 | 357 | <plugin>
|
|
642 | 660 | </dependency>
|
643 | 661 | </dependencies>
|
644 | 662 | </plugin>
|
| 663 | + <plugin> |
| 664 | + <groupId>org.apache.maven.plugins</groupId> |
| 665 | + <artifactId>maven-source-plugin</artifactId> |
| 666 | + <executions> |
| 667 | + <execution> |
| 668 | + <id>default-jar-no-fork</id> |
| 669 | + <goals> |
| 670 | + <goal>jar-no-fork</goal> |
| 671 | + </goals> |
| 672 | + </execution> |
| 673 | + </executions> |
| 674 | + </plugin> |
| 675 | + <plugin> |
| 676 | + <groupId>org.apache.maven.plugins</groupId> |
| 677 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 678 | + <configuration> |
| 679 | + <failOnError>false</failOnError> |
| 680 | + </configuration> |
| 681 | + <executions> |
| 682 | + <execution> |
| 683 | + <id>attach-javadocs</id> |
| 684 | + <goals> |
| 685 | + <goal>jar</goal> |
| 686 | + </goals> |
| 687 | + </execution> |
| 688 | + </executions> |
| 689 | + </plugin> |
645 | 690 | </plugins>
|
646 | 691 | </build>
|
647 | 692 | </profile>
|
|
0 commit comments