This is an automated email from the ASF dual-hosted git repository. pan3793 pushed a commit to branch branch-3.5 in repository https://gitbox.apache.org/repos/asf/hadoop.git
commit b7bb548fd2f18e638116acce6941e15efb9d85f0 Author: Anuj Modi <[email protected]> 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 92e2cf6fda4..10912934caf 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 5087668a785..ce31f4a7db8 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: [email protected] For additional commands, e-mail: [email protected]
