You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/10/25 10:35:06 UTC
[commons-rng] 01/02: Disable more plugins from default docs module build
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 41bc68eb076b47d946238878b8f33dcd21918a78
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Tue Oct 25 10:58:01 2022 +0100
Disable more plugins from default docs module build
---
commons-rng-docs/pom.xml | 48 ++++++++++++++++++++++--------------------------
1 file changed, 22 insertions(+), 26 deletions(-)
diff --git a/commons-rng-docs/pom.xml b/commons-rng-docs/pom.xml
index 7bd998f5..80c59e8a 100644
--- a/commons-rng-docs/pom.xml
+++ b/commons-rng-docs/pom.xml
@@ -36,6 +36,12 @@
<animal.sniffer.skip>true</animal.sniffer.skip>
<!-- Workaround to avoid duplicating config files. -->
<rng.parent.dir>${basedir}/..</rng.parent.dir>
+ <!-- Skip the standard build plugins to avoid processing this 'jar' as an artifact. -->
+ <maven.resources.skip>true</maven.resources.skip>
+ <maven.source.skip>true</maven.source.skip>
+ <maven.main.skip>true</maven.main.skip>
+ <maven.test.skip>true</maven.test.skip>
+ <maven.install.skip>true</maven.install.skip>
<maven.deploy.skip>true</maven.deploy.skip>
<!-- Simple site -->
<pmd.skip>true</pmd.skip>
@@ -74,7 +80,22 @@
<sourceDirectory>src</sourceDirectory>
<plugins>
- <!-- Create aggregate javadoc jar using 'mvn package' -->
+ <plugin>
+ <!-- This plugin has no skip property - use an invalid phase -->
+ <groupId>org.spdx</groupId>
+ <artifactId>spdx-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>build-spdx</id>
+ <goals>
+ <goal>createSPDX</goal>
+ </goals>
+ <phase>None</phase>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- Create aggregate javadoc jar using 'mvn javadoc:aggregate-jar' -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
@@ -104,31 +125,6 @@
</group>
</groups>
</configuration>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>aggregate-jar</goal>
- </goals>
- </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>