You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2026/03/23 10:07:01 UTC

(hadoop) branch trunk updated: HADOOP-19790. Set Minimum Required Maven Version to 3.9.11 (#8214)

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

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new afcf7f2c28a HADOOP-19790. Set Minimum Required Maven Version to 3.9.11 (#8214)
afcf7f2c28a is described below

commit afcf7f2c28a434c2d85385b66eafaab2529c138b
Author: Anuj Modi <an...@gmail.com>
AuthorDate: Mon Mar 23 15:36:53 2026 +0530

    HADOOP-19790. Set Minimum Required Maven Version to 3.9.11 (#8214)
    
    
    Contributed by Anuj Modi
---
 BUILDING.txt                 | 8 +++++++-
 dev-support/win-paths-eg.cmd | 2 +-
 pom.xml                      | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/BUILDING.txt b/BUILDING.txt
index f280cfdabe7..5d4ecbda361 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -71,7 +71,13 @@ Installing required packages for clean install of Ubuntu 24.04 LTS Desktop.
   $ sudo apt-get update
   $ sudo apt-get -y install openjdk-17-jdk
 * Maven
-  $ sudo apt-get -y install maven
+  Most package managers do not as of January 2026 install an up to date version of Maven.
+  Install an up-to-date version of Maven manually, or use mvnw command, which will download one and validate it before execution.
+
+  Following commands can be used to download and install required version of Maven manually if mvnw is not used:
+  $ curl -L https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.tar.gz > apache-maven-3.9.11-bin.tar.gz
+  $ tar -zxvf apache-maven-3.9.11-bin.tar.gz -C /opt
+  $ sudo ln -s /opt/apache-maven-3.9.11/bin/mvn /usr/bin
 * Native libraries
   $ sudo apt-get -y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev libsasl2-dev
 * Protocol Buffers 3.25.5 (required to build native code)
diff --git a/dev-support/win-paths-eg.cmd b/dev-support/win-paths-eg.cmd
index f9acae01968..ed5cefa6bb1 100644
--- a/dev-support/win-paths-eg.cmd
+++ b/dev-support/win-paths-eg.cmd
@@ -38,7 +38,7 @@ SET MAVEN_OPTS=-Dmaven.repo.local=C:\Tools\m2
 @REM command path
 @REM
 
-SET MAVEN_HOME=C:\Tools\apache-maven-3.5.0
+SET MAVEN_HOME=C:\Tools\apache-maven-3.9.11
 SET JAVA_HOME=C:\Tools\jdk
 SET MSVS=C:\Program Files (x86)\Microsoft Visual Studio 12.0
 SET PROTO_BIN=C:\Tools\protobuf-2.5.0
diff --git a/pom.xml b/pom.xml
index 60f91fac0b3..e04edf9eefd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -147,7 +147,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
     for an open-ended enforcement
     -->
     <enforced.java.version>[${javac.version},)</enforced.java.version>
-    <enforced.maven.version>[3.3.0,)</enforced.maven.version>
+    <enforced.maven.version>[3.9.11,)</enforced.maven.version>
   </properties>
 
   <modules>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org