This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 14c770284 Don't run javadoc:javadoc on Java 8 due to Java's 
incompatible expectation of package-list vs element-list on remote links
14c770284 is described below

commit 14c770284047da49e801ff96d8d993dd8dd0d77b
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Dec 15 15:40:44 2025 -0500

    Don't run javadoc:javadoc on Java 8 due to Java's incompatible
    expectation of package-list vs element-list on remote links
---
 pom.xml | 106 ++++++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 63 insertions(+), 43 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6bd92eedc..7476f0cc0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -212,49 +212,44 @@
     <plugins>
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>
-          <configuration>
-            <source>${maven.compiler.source}</source>
-            <quiet>true</quiet>
-            <notimestamp>true</notimestamp>
-            <validateLinks>true</validateLinks>
-            <archive>
-              <manifest>
-                
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
-                
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
-              </manifest>
-            </archive>
-            <doclint>all</doclint>
-            <!-- Java 8 on GH says: "[WARNING] javadoc: warning - Error 
fetching URL: https://commons.apache.org/proper/commons-text/apidocs/"; -->
-            <!-- <failOnWarnings>true</failOnWarnings> -->
-            <additionalDependencies>
-              <additionalDependency>
-                <groupId>org.apache.commons</groupId>
-                <artifactId>commons-text</artifactId>
-                <version>${commons.text.version}</version>
-              </additionalDependency>
-              <additionalDependency>
-                <groupId>commons-io</groupId>
-                <artifactId>commons-io</artifactId>
-                <version>${commons.io.version}</version>
-              </additionalDependency>
-            </additionalDependencies>
-            <links>
-              <link>https://commons.apache.org/proper/commons-io/apidocs</link>
-              
<link>https://commons.apache.org/proper/commons-text/apidocs</link>
-              <link>${commons.javadoc.javaee.link}</link>
-            </links>
-          </configuration>
-          <executions>
-            <execution>
-              <id>create-javadoc-jar</id>
-              <goals>
-                <goal>javadoc</goal>
-                <goal>jar</goal>
-              </goals>
-              <phase>package</phase>
-            </execution>
-          </executions>
-        </plugin>
+        <configuration>
+          <source>${maven.compiler.source}</source>
+          <quiet>true</quiet>
+          <notimestamp>true</notimestamp>
+          <validateLinks>true</validateLinks>
+          <archive>
+            <manifest>
+              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+            </manifest>
+          </archive>
+          <doclint>all</doclint>
+          <!-- Java 8 on GH says: "[WARNING] javadoc: warning - Error fetching 
URL: https://commons.apache.org/proper/commons-text/apidocs/"; -->
+          <!-- <failOnWarnings>true</failOnWarnings> -->
+          <additionalDependencies>
+            <additionalDependency>
+              <groupId>org.apache.commons</groupId>
+              <artifactId>commons-text</artifactId>
+              <version>${commons.text.version}</version>
+            </additionalDependency>
+            <additionalDependency>
+              <groupId>commons-io</groupId>
+              <artifactId>commons-io</artifactId>
+              <version>${commons.io.version}</version>
+            </additionalDependency>
+          </additionalDependencies>
+        </configuration>
+        <executions>
+          <execution>
+            <id>create-javadoc-jar</id>
+            <goals>
+              <goal>javadoc</goal>
+              <goal>jar</goal>
+            </goals>
+            <phase>package</phase>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
@@ -477,6 +472,16 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>java8</id>
+      <activation>
+        <jdk>1.8</jdk>
+      </activation>
+      <build>
+        <!-- Don't run javadoc:javadoc on Java 8 due to Java's incompatible 
expectation of package-list vs element-list on remote links. -->
+        <defaultGoal>clean test apache-rat:check checkstyle:check japicmp:cmp 
spotbugs:check pmd:check</defaultGoal>
+      </build>
+    </profile>
     <profile>
       <id>java9+</id>
       <activation>
@@ -487,6 +492,21 @@
         <!-- LANG-1667: allow tests to access private fields/methods of 
java.base/java.util such as ArrayList via reflection -->
         <extraArgs>--add-opens java.base/java.lang.reflect=ALL-UNNAMED 
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens 
java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED 
--add-opens java.base/java.time.chrono=ALL-UNNAMED  --add-opens 
java.base/java.util.concurrent.atomic=ALL-UNNAMED</extraArgs>
       </properties>
+      <build>
+        <plugins>
+        <plugin>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <configuration>
+            <source>${maven.compiler.source}</source>
+            <links>
+              <link>https://commons.apache.org/proper/commons-io/apidocs</link>
+              
<link>https://commons.apache.org/proper/commons-text/apidocs</link>
+              <link>${commons.javadoc.javaee.link}</link>
+            </links>
+          </configuration>
+        </plugin>
+        </plugins>
+      </build>
     </profile>
     <profile>
       <id>java15</id>

Reply via email to