This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 10d70b8902c301c18a08fa318d41d57e3ad8164c Author: aherbert <aherb...@apache.org> AuthorDate: Fri Jun 2 18:21:58 2023 +0100 Run Java 11+ build and javadoc generation separately --- .github/workflows/maven.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3b779d41..b460a8a8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -43,6 +43,11 @@ jobs: if: matrix.java == 8 run: mvn -V --no-transfer-progress - name: Build with Maven including examples - # Examples require Java 11+ + # Examples require Java 11+. + # Building javadoc errors when run with the package phase with an error about + # the module path and the unamed module (despite using an automatic module name). + # Here we run the build and javadoc generation separately. if: matrix.java > 8 - run: mvn -V --no-transfer-progress -P commons-numbers-examples + run: | + mvn -V --no-transfer-progress -P commons-numbers-examples -Dmaven.javadoc.skip + mvn -P commons-numbers-examples javadoc:javadoc