ARTEMIS-4341 refactor JavaDoc generation
Currently JavaDoc is generated for many classes that don't need it. JavaDoc should be reserved for user-facing classes (e.g. those used by client application developers and developers embedding a broker into their application). This commit narrows down the configuration to just the classes that are needed. This will save time during release builds, and save disk space wherever these files are stored (e.g. Apache website).
This commit is contained in:
parent
b310de1df3
commit
f60a7d5c04
|
@ -106,6 +106,37 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>release</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<useStandardDocletOptions>true</useStandardDocletOptions>
|
||||||
|
<minmemory>128m</minmemory>
|
||||||
|
<maxmemory>512m</maxmemory>
|
||||||
|
<noindex>true</noindex>
|
||||||
|
<sourceFileIncludes>
|
||||||
|
<sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
|
||||||
|
</sourceFileIncludes>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>javadocs</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -153,10 +153,11 @@
|
||||||
<minmemory>128m</minmemory>
|
<minmemory>128m</minmemory>
|
||||||
<maxmemory>512m</maxmemory>
|
<maxmemory>512m</maxmemory>
|
||||||
<noindex>true</noindex>
|
<noindex>true</noindex>
|
||||||
<quiet>false</quiet>
|
<sourceFileIncludes>
|
||||||
<aggregate>true</aggregate>
|
<sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
|
||||||
<excludePackageNames>org.apache.activemq.artemis.core:org.apache.activemq.artemis.utils,org.apache.activemq.artemis.commons
|
<sourceFileInclude>**/org/apache/activemq/artemis/spi/**/*.java</sourceFileInclude>
|
||||||
</excludePackageNames>
|
<sourceFileInclude>**/org/apache/activemq/artemis/core/config/**/*.java</sourceFileInclude>
|
||||||
|
</sourceFileIncludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
|
@ -95,9 +95,9 @@
|
||||||
<minmemory>128m</minmemory>
|
<minmemory>128m</minmemory>
|
||||||
<maxmemory>512m</maxmemory>
|
<maxmemory>512m</maxmemory>
|
||||||
<noindex>true</noindex>
|
<noindex>true</noindex>
|
||||||
<quiet>false</quiet>
|
<sourceFileIncludes>
|
||||||
<aggregate>true</aggregate>
|
<sourceFileInclude>**/org/apache/activemq/artemis/api/jms/**/*.java</sourceFileInclude>
|
||||||
<excludePackageNames>org.apache.activemq.artemis.core:org.apache.activemq.artemis.utils</excludePackageNames>
|
</sourceFileIncludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
|
@ -87,36 +87,4 @@
|
||||||
<artifactId>jakarta.transaction-api</artifactId>
|
<artifactId>jakarta.transaction-api</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
|
||||||
<profile>
|
|
||||||
<id>release</id>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<useStandardDocletOptions>true</useStandardDocletOptions>
|
|
||||||
<minmemory>128m</minmemory>
|
|
||||||
<maxmemory>512m</maxmemory>
|
|
||||||
<noindex>true</noindex>
|
|
||||||
<quiet>false</quiet>
|
|
||||||
<aggregate>true</aggregate>
|
|
||||||
<excludePackageNames>org.apache.activemq.artemis.core:org.apache.activemq.artemis.utils</excludePackageNames>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>javadocs</id>
|
|
||||||
<goals>
|
|
||||||
<goal>jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -309,10 +309,15 @@
|
||||||
<minmemory>128m</minmemory>
|
<minmemory>128m</minmemory>
|
||||||
<maxmemory>512m</maxmemory>
|
<maxmemory>512m</maxmemory>
|
||||||
<noindex>true</noindex>
|
<noindex>true</noindex>
|
||||||
<quiet>false</quiet>
|
<sourceFileIncludes>
|
||||||
<aggregate>true</aggregate>
|
<sourceFileInclude>**/org/apache/activemq/artemis/spi/**/*.java</sourceFileInclude>
|
||||||
<excludePackageNames>org.apache.activemq.artemis.core:org.apache.activemq.artemis.utils
|
<sourceFileInclude>**/org/apache/activemq/artemis/core/config/**/*.java</sourceFileInclude>
|
||||||
</excludePackageNames>
|
<sourceFileInclude>**/org/apache/activemq/artemis/core/server/plugin/**/*.java</sourceFileInclude>
|
||||||
|
</sourceFileIncludes>
|
||||||
|
<sourceFileExcludes>
|
||||||
|
<sourceFileExclude>**/impl/**/*.java</sourceFileExclude>
|
||||||
|
<sourceFileExclude>**/*Impl.java</sourceFileExclude>
|
||||||
|
</sourceFileExcludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
|
@ -65,18 +65,15 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.activemq</groupId>
|
<groupId>org.apache.activemq</groupId>
|
||||||
<artifactId>artemis-jms-server</artifactId>
|
<artifactId>artemis-commons</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.activemq</groupId>
|
<groupId>jakarta.json</groupId>
|
||||||
<artifactId>artemis-journal</artifactId>
|
<artifactId>jakarta.json-api</artifactId>
|
||||||
<version>${project.version}</version>
|
<scope>compile</scope>
|
||||||
</dependency>
|
<optional>true</optional>
|
||||||
<dependency>
|
<!-- License: EPL 2.0 -->
|
||||||
<groupId>org.apache.activemq</groupId>
|
|
||||||
<artifactId>artemis-selector</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- stuff needed to resolve various classes during javadoc processing -->
|
<!-- stuff needed to resolve various classes during javadoc processing -->
|
||||||
|
@ -113,19 +110,23 @@
|
||||||
<skip>${skipWebsiteJavadocGeneration}</skip>
|
<skip>${skipWebsiteJavadocGeneration}</skip>
|
||||||
<!-- switch on dependency-driven aggregation -->
|
<!-- switch on dependency-driven aggregation -->
|
||||||
<includeDependencySources>true</includeDependencySources>
|
<includeDependencySources>true</includeDependencySources>
|
||||||
|
|
||||||
<dependencySourceIncludes>
|
<dependencySourceIncludes>
|
||||||
<!-- include ONLY dependencies I control -->
|
<!-- include ONLY dependencies I control -->
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-core-client</dependencySourceInclude>
|
<dependencySourceInclude>org.apache.activemq:artemis-core-client</dependencySourceInclude>
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-jms-client</dependencySourceInclude>
|
<dependencySourceInclude>org.apache.activemq:artemis-jms-client</dependencySourceInclude>
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-server</dependencySourceInclude>
|
<dependencySourceInclude>org.apache.activemq:artemis-server</dependencySourceInclude>
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-jms-server</dependencySourceInclude>
|
<dependencySourceInclude>org.apache.activemq:artemis-commons</dependencySourceInclude>
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-journal</dependencySourceInclude>
|
|
||||||
<dependencySourceInclude>org.apache.activemq:artemis-selector</dependencySourceInclude>
|
|
||||||
</dependencySourceIncludes>
|
</dependencySourceIncludes>
|
||||||
<aggregate>true</aggregate>
|
<sourceFileIncludes>
|
||||||
<excludePackageNames>org.apache.activemq.artemis.core:org.apache.activemq.artemis.utils
|
<sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
|
||||||
</excludePackageNames>
|
<sourceFileInclude>**/org/apache/activemq/artemis/spi/**/*.java</sourceFileInclude>
|
||||||
|
<sourceFileInclude>**/org/apache/activemq/artemis/core/config/**/*.java</sourceFileInclude>
|
||||||
|
<sourceFileInclude>**/org/apache/activemq/artemis/core/server/plugin/**/*.java</sourceFileInclude>
|
||||||
|
</sourceFileIncludes>
|
||||||
|
<sourceFileExcludes>
|
||||||
|
<sourceFileExclude>**/impl/**/*.java</sourceFileExclude>
|
||||||
|
<sourceFileExclude>**/*Impl.java</sourceFileExclude>
|
||||||
|
</sourceFileExcludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
Loading…
Reference in New Issue