You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by as...@apache.org on 2026/07/23 09:26:57 UTC

(maven-jar-plugin) branch maven-jar-plugin-3.x updated: Manage commons-io via dependencyManagement

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

ascheman pushed a commit to branch maven-jar-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-jar-plugin.git


The following commit(s) were added to refs/heads/maven-jar-plugin-3.x by this push:
     new bc28643  Manage commons-io via dependencyManagement
bc28643 is described below

commit bc286431b25de10727c0859ab7c78c7e9d95bb81
Author: Gerd Aschemann <as...@apache.org>
AuthorDate: Sun Jul 19 19:19:18 2026 +0200

    Manage commons-io via dependencyManagement
    
    The direct commons-io dependency was a Maven 4.0.0-rc-3-era
    workaround; it is unused in code and makes dependency:analyze
    warn about an unused declared dependency. The pin itself is
    still required: without it, file-management's transitive
    commons-io 2.19.0 wins conflict resolution against the 2.22.0
    that plexus-archiver 4.12.0 expects.
    
    Moving the pin to dependencyManagement keeps the effective
    classpath identical (2.22.0 on Maven 3.10.0-rc-1 and 4.0.0-rc-5,
    verified via dependency:tree) and silences the warning.
    Full -P run-its passes on both Maven lines (38/38 ITs).
---
 pom.xml | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index a9687a5..3574ec7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,6 +83,17 @@
     <version.maven-toolchains-plugin>3.1.0</version.maven-toolchains-plugin>
   </properties>
 
+  <dependencyManagement>
+    <dependencies>
+      <!-- align commons-io: file-management pulls 2.19.0, plexus-archiver needs 2.22.0 -->
+      <dependency>
+        <groupId>commons-io</groupId>
+        <artifactId>commons-io</artifactId>
+        <version>2.22.0</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
   <dependencies>
     <!-- Maven Core -->
     <dependency>
@@ -143,13 +154,6 @@
       <version>1.7.36</version>
     </dependency>
 
-    <!-- we need for Maven rc-3, looks like dependencyManagement is not taken into account -->
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-      <version>2.22.0</version>
-    </dependency>
-
     <!-- Test -->
     <dependency>
       <groupId>org.junit.jupiter</groupId>