From 054b1450d55daa9026040b8bd571a776b403ce2a Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 14 Mar 2018 09:11:09 +0100 Subject: [PATCH] #527 - Tweak JavaDoc aggregation to properly work with Delombok on multi-module projects. We now write the output of the JavaDoc generation to ${project.root}/target/generated-sources/delombok so that it will always end up in the top level target folder so that the aggregation of JavaDoc for multiple projects can actually find the generated source. Upgraded the JavaDoc plugin to 3.0.0 and switched to use the additionalJOptions parameter to disable the doclint. Delayed documentation generation to the prepare-package phase. This is due to javadoc:aggregate triggering the compile phase before running which then caused the reference docs to be created twice slowing down the build significantly (mostly due to the PDF generation taking quite a while). --- parent/pom.xml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index 8dd62e02..5f405dde 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -275,7 +275,7 @@ unpack-dependencies - generate-resources + prepare-package @@ -302,6 +302,9 @@ delombok + + ${project.root}/target/generated-sources/delombok + @@ -316,6 +319,9 @@ aggregate package + + ${project.root}/target/site/apidocs + @@ -358,7 +364,7 @@ collect-schema-files - process-resources + prepare-package @@ -376,7 +382,7 @@ rename-reference-docs - process-resources + package @@ -420,7 +426,7 @@ html - generate-resources + prepare-package process-asciidoc @@ -438,9 +444,10 @@ + @@ -777,7 +784,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 + 3.0.0 @@ -957,7 +964,7 @@ ${shared.resources}/javadoc/spring-javadoc.css true - -Xdoclint:none + -Xdoclint:none target/generated-sources/delombok https://docs.spring.io/spring/docs/5.0.x/javadoc-api/