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

gnodet pushed a commit to branch maven-3.10.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.10.x by this push:
     new 285bac9b9a [#14019] Use Commons Logging in Maven Core and the CLI
285bac9b9a is described below

commit 285bac9b9aea62daf41e23cc89d8d477693bf713
Author: krathod <[email protected]>
AuthorDate: Thu Nov 26 07:48:11 2026 -0600

    [#14019] Use Commons Logging in Maven Core and the CLI
    
    * Manage Commons Logging and ban the legacy JCL bridge
    
    Manage Commons Logging 1.4.0 centrally and use the existing 
banned-dependencies rule to catch direct or transitive reintroduction of 
jcl-over-slf4j.
    
    * Use Commons Logging in the resolver provider
    
    Supply the JCL API to the Apache HTTP transport while keeping 
jcl-over-slf4j out of downstream Maven Core dependency graphs.
    
    * Package Commons Logging for native and Wagon HTTP
    
    Use the managed Commons Logging runtime in the CLI distribution. Exclude 
the bridge from wagon-http so both transports share one JCL implementation.
---
 apache-maven/pom.xml            | 11 ++++++++---
 maven-resolver-provider/pom.xml |  4 ++--
 pom.xml                         | 12 +++++++-----
 3 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml
index fd6023b618..e2d17d6279 100644
--- a/apache-maven/pom.xml
+++ b/apache-maven/pom.xml
@@ -61,15 +61,20 @@ under the License.
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-http</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.slf4j</groupId>
+          <artifactId>jcl-over-slf4j</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-file</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>jcl-over-slf4j</artifactId>
-      <version>${slf4jVersion}</version>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
       <scope>runtime</scope>
     </dependency>
     <dependency>
diff --git a/maven-resolver-provider/pom.xml b/maven-resolver-provider/pom.xml
index 8db4794402..a398207dfb 100644
--- a/maven-resolver-provider/pom.xml
+++ b/maven-resolver-provider/pom.xml
@@ -77,8 +77,8 @@ under the License.
       <artifactId>maven-resolver-transport-apache</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>jcl-over-slf4j</artifactId>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
       <scope>runtime</scope>
     </dependency>
     <dependency>
diff --git a/pom.xml b/pom.xml
index adcb6c1e23..9fc2169653 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,6 +131,7 @@ under the License.
     <classWorldsVersion>2.12.1</classWorldsVersion>
     <commonsCliVersion>1.11.0</commonsCliVersion>
     <commonsIoVersion>2.22.0</commonsIoVersion>
+    <commonsLoggingVersion>1.4.0</commonsLoggingVersion>
     <hamcrestVersion>3.0</hamcrestVersion>
     <mockitoVersion>4.11.0</mockitoVersion>
     <plexusVersion>2.2.0</plexusVersion>
@@ -366,11 +367,6 @@ under the License.
         <artifactId>slf4j-simple</artifactId>
         <version>${slf4jVersion}</version>
       </dependency>
-      <dependency>
-        <groupId>org.slf4j</groupId>
-        <artifactId>jcl-over-slf4j</artifactId>
-        <version>${slf4jVersion}</version>
-      </dependency>
       <dependency>
         <groupId>ch.qos.logback</groupId>
         <artifactId>logback-classic</artifactId>
@@ -461,6 +457,11 @@ under the License.
         <artifactId>commons-jxpath</artifactId>
         <version>${jxpathVersion}</version>
       </dependency>
+      <dependency>
+        <groupId>commons-logging</groupId>
+        <artifactId>commons-logging</artifactId>
+        <version>${commonsLoggingVersion}</version>
+      </dependency>
       <dependency>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-sec-dispatcher</artifactId>
@@ -718,6 +719,7 @@ under the License.
                     
<exclude>org.sonatype.plexus:plexus-sec-dispatcher</exclude>
                     <exclude>org.sonatype.plexus:plexus-cipher</exclude>
                     <exclude>com.google.inject:guice</exclude>
+                    <exclude>org.slf4j:jcl-over-slf4j</exclude>
                   </excludes>
                   <includes>
                     <include>com.google.inject:guice:*:*:*:classes</include>

Reply via email to