diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -466,6 +466,45 @@ </configuration> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>3.1.0</version> + <executions> + <!-- + Remove javadoc version number from HTML comment to keep website diffs small. + + Attention: This has no effect on javadocs generated by the 'jar' goal, because they are archived while + Maven Javadoc runs, i.e. before this plugin execution kicks in. However, it cleans the javadocs before + Maven Resources copies them to aj-build/dist/docs/doc. I.e., they will be clean on the website, if copied + from that folder, and also in the installer. + + TODO: In the future, maybe this execution or the whole Antrun plugin can go away, after a JDK feature + request I just created (internal review ID 9076583) has been implemented and back-ported into all JDK + versions we support for javadoc generation. But if that ever happens, it might take a while. + --> + <execution> + <id>filter-javadocs</id> + <!-- Override phase to 'package' in modules which need to filter javadocs --> + <phase>none</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <!-- See https://ant.apache.org/manual/Tasks/replaceregexp.html --> + <replaceregexp byline="true"> + <regexp pattern="^(<!-- Generated by javadoc ).* (-->)$"/> + <substitution expression="\1\2"/> + <fileset dir="${project.build.directory}/apidocs"> + <include name="**/*.html"/> + </fileset> + </replaceregexp> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>2.2.5</version> |