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-rng.git
commit 0dc45a732e0f2cb765bfa03614070457fdb78c5b Author: Alex Herbert <aherb...@apache.org> AuthorDate: Tue Aug 17 10:53:32 2021 +0100 Add aggregator module for documentation --- dist-archive/src/assembly/bin.xml | 4 +- docs-archive/pom.xml | 182 ++++++++++++++++++++++++++++++++++++++ pom.xml | 13 +++ 3 files changed, 197 insertions(+), 2 deletions(-) diff --git a/dist-archive/src/assembly/bin.xml b/dist-archive/src/assembly/bin.xml index 5561518..0cb5c84 100644 --- a/dist-archive/src/assembly/bin.xml +++ b/dist-archive/src/assembly/bin.xml @@ -46,8 +46,8 @@ limitations under the License. </includes> </fileSet> <fileSet> - <directory>${project.basedir}/../target/site</directory> - <outputDirectory>docs</outputDirectory> + <directory>${project.basedir}/../docs-archive/target/apidocs</directory> + <outputDirectory>apidocs</outputDirectory> <excludes> </excludes> </fileSet> diff --git a/docs-archive/pom.xml b/docs-archive/pom.xml new file mode 100644 index 0000000..3dfa37d --- /dev/null +++ b/docs-archive/pom.xml @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-parent</artifactId> + <version>1.4-SNAPSHOT</version> + </parent> + + <artifactId>commons-rng-docs</artifactId> + <!-- do not set packaging to pom, because otherwise we will receive + "Not executing Javadoc as the project is not a Java classpath-capable package" --> + + <name>Apache Commons RNG Documentation</name> + <description>This module creates the Apache Commons RNG documentation.</description> + + <properties> + <checkstyle.skip>true</checkstyle.skip> + <animal.sniffer.skip>true</animal.sniffer.skip> + <!-- Workaround to avoid duplicating config files. --> + <rng.parent.dir>${basedir}/..</rng.parent.dir> + <maven.deploy.skip>true</maven.deploy.skip> + <!-- Simple site --> + <spotbugs.skip>true</spotbugs.skip> + <checkstyle.skip>true</checkstyle.skip> + <changes.jira.skip>true</changes.jira.skip> + <skipSurefireReport>true</skipSurefireReport> + </properties> + + <!-- Depend on all other modules --> + <dependencies> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-client-api</artifactId> + <version>1.4-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-core</artifactId> + <version>1.4-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-simple</artifactId> + <version>1.4-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-sampling</artifactId> + <version>1.4-SNAPSHOT</version> + </dependency> + </dependencies> + + <build> + <sourceDirectory>src</sourceDirectory> + + <plugins> + <!-- Create aggregate javadoc directory using 'mvn package' --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <phase>prepare-package</phase> + <goals> + <goal>jar</goal> + </goals> + <configuration> + <reportOutputDirectory>${project.build.directory}/apidocs</reportOutputDirectory> + <includeDependencySources>true</includeDependencySources> + <doctitle>Apache Commons RNG ${project.version}</doctitle> + <windowtitle>Apache Commons RNG ${project.version}</windowtitle> + <use>true</use> + <version>false</version> + <groups> + <group> + <title>API Package</title> + <packages>org.apache.commons.rng</packages> + </group> + <group> + <title>Core Package</title> + <packages>org.apache.commons.rng.core*</packages> + </group> + <group> + <title>Simple Package</title> + <packages>org.apache.commons.rng.simple*</packages> + </group> + <group> + <title>Sampling Package</title> + <packages>org.apache.commons.rng.sampling*</packages> + </group> + </groups> + </configuration> + </execution> + </executions> + </plugin> + + <!-- There is nothing to do --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <configuration> + <skipSource>true</skipSource> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + </plugins> + </build> + + <reporting> + <plugins> + <plugin> + <artifactId>maven-pmd-plugin</artifactId> + <version>${rng.pmd.version}</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jdepend-maven-plugin</artifactId> + <version>${commons.jdepend.version}</version> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + <!-- Create an aggregate report from the *parent* directory using: + + 'mvn jacoco:report-aggregate' + + Requires that tests have already been run with the jacoco user agent. + If executed within this directory then jacoco does not collect the + executions from the module dependencies. --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>${commons.jacoco.version}</version> + <configuration> + <title>Apache Commons RNG</title> + <footer>Code Coverage Report for Apache Commons RNG ${project.version}</footer> + <includes> + <!-- Analyze class files only to exclude shaded agent JAR from report --> + <include>**/*.class</include> + </includes> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>report-aggregate</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + +</project> diff --git a/pom.xml b/pom.xml index 728e44e..9b4c5c5 100644 --- a/pom.xml +++ b/pom.xml @@ -443,6 +443,7 @@ <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> + <version>${commons.jacoco.version}</version> <reportSets> <reportSet> <reports> @@ -677,10 +678,22 @@ This is avoided by creating an empty directory when svn is not available. <module>commons-rng-simple</module> <module>commons-rng-sampling</module> <module>commons-rng-examples</module> + <module>docs-archive</module> <module>dist-archive</module> </modules> </profile> + <profile> + <id>docs</id> + <modules> + <module>commons-rng-client-api</module> + <module>commons-rng-core</module> + <module>commons-rng-simple</module> + <module>commons-rng-sampling</module> + <module>docs-archive</module> + </modules> + </profile> + </profiles> <developers>