You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2026/10/02 07:42:21 UTC

(httpcomponents-core) branch master updated: Upgraded HC Parent to version 15 / POM cleanup

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

ok2c pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b0a20edb Upgraded HC Parent to version 15 / POM cleanup
0b0a20edb is described below

commit 0b0a20edb26c5b443ae4f15a4d0028258f958bda
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Oct 1 21:43:02 2026 +0200

    Upgraded HC Parent to version 15 / POM cleanup
---
 .github/workflows/maven.yml |  2 +-
 httpcore5-jackson3/pom.xml  | 14 ++------
 httpcore5-testing/pom.xml   |  1 -
 pom.xml                     | 88 +++++++++++++--------------------------------
 src/site/site.xml           | 31 ++++++++--------
 5 files changed, 44 insertions(+), 92 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index e6b586ddc..b6f3af572 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -101,4 +101,4 @@ jobs:
         </toolchains>
         EOF
     - name: Build with Maven
-      run: ./mvnw -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -Djunit.jupiter.execution.parallel.enabled=false -Dhc.build.toolchain.version="${HC_BUILD_TOOLCHAIN_VERSION}" ${HC_PROFILE_ARGS} -Pdocker
+      run: ./mvnw -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -Djunit.jupiter.execution.parallel.enabled=false -DjavaVersion="${HC_BUILD_TOOLCHAIN_VERSION}" ${HC_PROFILE_ARGS} -Pdocker
diff --git a/httpcore5-jackson3/pom.xml b/httpcore5-jackson3/pom.xml
index 5d8a57beb..d3e38a66c 100644
--- a/httpcore5-jackson3/pom.xml
+++ b/httpcore5-jackson3/pom.xml
@@ -43,17 +43,9 @@
       of HttpCore continues to target Java 8. The root POM keeps the module out
       of the reactor when an older toolchain is selected.
     -->
-    <maven.compiler.source>17</maven.compiler.source>
-    <maven.compiler.target>17</maven.compiler.target>
-    <maven.compiler.release>17</maven.compiler.release>
-    <hc.build.toolchain.version>17</hc.build.toolchain.version>
-    <!--
-      Animal Sniffer derives its signature artifact from the compiler target
-      (java${major}${minor}); target 17 resolves to the non-existent
-      "java170" signature. The API-level check is moot for a module that
-      deliberately targets Java 17, so it is disabled here.
-    -->
-    <animal.sniffer.skip>true</animal.sniffer.skip>
+    <javaVersion>17</javaVersion>
+    <maven.compiler.source>${javaVersion}</maven.compiler.source>
+    <maven.compiler.target>${javaVersion}</maven.compiler.target>
   </properties>
 
   <dependencies>
diff --git a/httpcore5-testing/pom.xml b/httpcore5-testing/pom.xml
index d0690601b..42fa8d3b7 100644
--- a/httpcore5-testing/pom.xml
+++ b/httpcore5-testing/pom.xml
@@ -131,7 +131,6 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-failsafe-plugin</artifactId>
-            <version>${hc.surefire.version}</version>
             <executions>
               <execution>
                 <goals>
diff --git a/pom.xml b/pom.xml
index eb9b4eff7..10be78fe5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
   <parent>
     <groupId>org.apache.httpcomponents</groupId>
     <artifactId>httpcomponents-parent</artifactId>
-    <version>14</version>
+    <version>15</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.httpcomponents.core5</groupId>
@@ -67,12 +67,17 @@
   </modules>
 
   <properties>
-    <!-- Override parent 7 setting for deprecation (only - other settings stand)-->
-    <maven.compiler.source>1.8</maven.compiler.source>
-    <maven.compiler.target>1.8</maven.compiler.target>
+    <javaVersion>8</javaVersion>
+    <minimalJavaBuildVersion>17</minimalJavaBuildVersion>
+    <maven.compiler.source>${javaVersion}</maven.compiler.source>
+    <maven.compiler.target>${javaVersion}</maven.compiler.target>
     <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
-    <!-- Maven itself runs on Java 17+, but compilation and tests can still use an older toolchain JDK. -->
-    <hc.build.toolchain.version>${maven.compiler.source}</hc.build.toolchain.version>
+    <api.comparison.version>5.4</api.comparison.version>
+
+    <!-- Disable animal sniffer. It has been superseded by compiler release version
+      To be completely removed -->
+    <animal.sniffer.skip>true</animal.sniffer.skip>
+
     <conscrypt.version>2.6.1</conscrypt.version>
     <jackson.version>3.2.0</jackson.version>
     <junit.version>5.14.4</junit.version>
@@ -83,9 +88,7 @@
     <log4j.version>2.25.4</log4j.version>
     <rxjava3.version>3.1.12</rxjava3.version>
     <testcontainers.version>1.21.4</testcontainers.version>
-    <api.comparison.version>5.4</api.comparison.version>
     <jmh.version>1.37</jmh.version>
-    <hc.animal-sniffer.signature.ignores>javax.net.ssl.SSLEngine,javax.net.ssl.SSLParameters,java.nio.ByteBuffer,java.nio.CharBuffer,jdk.net.ExtendedSocketOptions,jdk.net.Sockets</hc.animal-sniffer.signature.ignores>
   </properties>
 
   <dependencyManagement>
@@ -187,6 +190,19 @@
   <build>
     <defaultGoal>clean verify</defaultGoal>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>${maven.compiler.source}</source>
+          <target>${maven.compiler.target}</target>
+          <!-- unset compiler release version set by the apache parent
+           Presently core and client fail compile with java 8 release target
+           due to the use of jdk.net classes
+           -->
+          <release combine.self="override"/>
+        </configuration>
+      </plugin>
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>
@@ -232,31 +248,9 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.6.2</version>
-        <executions>
-          <execution>
-            <id>enforce-java-runtime</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireJavaVersion>
-                  <version>[17,)</version>
-                  <message>Apache HttpComponents Core requires Java 17 or newer to run Maven. Use toolchains to compile and test with older JDKs.</message>
-                </requireJavaVersion>
-              </rules>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>com.github.siom79.japicmp</groupId>
         <artifactId>japicmp-maven-plugin</artifactId>
-        <version>0.25.6</version>
         <configuration>
           <oldVersion>
             <dependency>
@@ -297,7 +291,6 @@
       <plugin>
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
-        <version>0.18</version>
         <executions>
           <execution>
             <phase>verify</phase>
@@ -336,37 +329,6 @@
         <module>httpcore5-jackson3</module>
       </modules>
     </profile>
-    <profile>
-      <id>use-toolchains</id>
-      <activation>
-        <file>
-          <exists>${user.home}/.m2/toolchains.xml</exists>
-        </file>
-      </activation>
-      <build>
-        <plugins>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-toolchains-plugin</artifactId>
-            <version>3.2.0</version>
-            <configuration combine.self="override">
-              <toolchains>
-                <jdk>
-                  <version>${hc.build.toolchain.version}</version>
-                </jdk>
-              </toolchains>
-            </configuration>
-            <executions combine.self="override">
-              <execution>
-                <goals>
-                  <goal>toolchain</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
   </profiles>
 
   <reporting>
@@ -466,4 +428,4 @@
     </plugins>
   </reporting>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/src/site/site.xml b/src/site/site.xml
index 0214039f7..ca0eebb85 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -17,25 +17,22 @@ KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 -->
-
-<project name="Apache HttpComponents Core">
+<site xmlns="http://maven.apache.org/SITE/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
+      name="Apache HttpComponents Core">
 
   <skin>
     <groupId>org.apache.maven.skins</groupId>
     <artifactId>maven-fluido-skin</artifactId>
-    <version>1.9</version>
+    <version>2.1.0</version>
   </skin>
 
-  <bannerLeft>
-    <name>Apache</name>
-    <src>https://www.apache.org/images/asf_logo.gif</src>
-    <href>https://www.apache.org/</href>
+  <bannerLeft href="https://www.apache.org/">
+    <image alt="Apache" src="https://www.apache.org/images/asf_logo.gif" />
   </bannerLeft>
 
-  <bannerRight>
-    <name>HttpComponents</name>
-    <src>https://hc.apache.org/images/logos/httpcomponents.png</src>
-    <href>https://hc.apache.org/</href>
+  <bannerRight href="https://hc.apache.org/">
+    <image alt="HttpComponents" src="https://hc.apache.org/images/logos/httpcomponents.png" />
   </bannerRight>
 
   <body>
@@ -61,11 +58,13 @@ under the License.
   <!-- inherited -->
   <poweredBy>
     <!-- Add ApacheCon logo -->
-    <logo name="ApacheCon" href="https://www.apache.org/events/current-event.html"
-          img="https://www.apache.org/events/current-event-125x125.png"/>
+    <logo href="https://www.apache.org/events/current-event.html">
+      <image src="https://www.apache.org/events/current-event-125x125.png" alt="ApacheCon"/>
+    </logo>
     <!-- Keep the default logo as well -->
-    <logo name="Maven" href="https://maven.apache.org/"
-          img="https://maven.apache.org/images/logos/maven-feather.png"/>
+    <logo href="https://maven.apache.org/">
+      <image src="https://maven.apache.org/images/logos/maven-feather.png" alt="Maven"/>
+    </logo>
   </poweredBy>
 
   <!-- inherited -->
@@ -79,4 +78,4 @@ under the License.
       <skipGenerationDate>true</skipGenerationDate>
     </fluidoSkin>
   </custom>
-</project>
+</site>