Configure the maven-javadoc-plugin for the project build, the 'ci' build profile and the 'distribute' build profile.

Add link to Apache Geode (public) Javadoc site.

Add dependency source excluces on org.apache.geode:geode-gfsh.

Set 'failOnWarnings' to false.

Resolves gh-538.
This commit is contained in:
John Blum
2021-09-27 13:16:38 -07:00
parent c791fb8f92
commit 100366367e
2 changed files with 66 additions and 7 deletions

64
pom.xml
View File

@@ -54,6 +54,70 @@
<spring-shell.version>1.2.0.RELEASE</spring-shell.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<dependencySourceExcludes>
<dependencySourceExclude>org.apache.geode:geode-gfsh</dependencySourceExclude>
</dependencySourceExcludes>
<failOnWarnings>false</failOnWarnings>
<links>
<link>https://geode.apache.org/releases/latest/javadoc/</link>
</links>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<dependencySourceExcludes>
<dependencySourceExclude>org.apache.geode:geode-gfsh</dependencySourceExclude>
</dependencySourceExcludes>
<failOnWarnings>false</failOnWarnings>
<links>
<link>https://geode.apache.org/releases/latest/javadoc/</link>
</links>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>distribute</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<dependencySourceExcludes>
<dependencySourceExclude>org.apache.geode:geode-gfsh</dependencySourceExclude>
</dependencySourceExcludes>
<failOnWarnings>false</failOnWarnings>
<links>
<link>https://geode.apache.org/releases/latest/javadoc/</link>
</links>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>

View File

@@ -283,17 +283,11 @@
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<excludePackageNames>org.apache.geode.lang:org.apache.geode.management.internal</excludePackageNames>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>local-java17</id>
<build>
@@ -343,6 +337,7 @@
</plugins>
</build>
</profile>
</profiles>
</project>