diff --git a/BUILDING.txt b/BUILDING.txt index ab93e27f5fde3..09de93847915d 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -5,7 +5,7 @@ Requirements: * Unix System * JDK 17 -* Maven 3.3 or later +* Maven 3.9.11 or later * Boost 1.86.0 (if compiling native code) * Protocol Buffers 3.25.5 (if compiling native code) * CMake 3.19 or newer (if compiling native code) @@ -63,7 +63,11 @@ Refer to dev-support/docker/Dockerfile): $ sudo apt-get update $ sudo apt-get -y install openjdk-17-jdk * Maven - $ sudo apt-get -y install maven + Most package managers do not install required version of Maven i.e. 3.9.11 or later. + Following commands download and install Maven manually + $ 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 * GCC 9.3.0 @@ -583,7 +587,7 @@ Requirements: * Windows 10 * JDK 17 -* Maven 3.3 or later (maven.apache.org) +* Maven 3.9.11 or later (maven.apache.org) * Boost 1.86.0 (boost.org) * Protocol Buffers 3.25.5 (https://github.com/protocolbuffers/protobuf/tags) * CMake 3.19 or newer (cmake.org) diff --git a/dev-support/win-paths-eg.cmd b/dev-support/win-paths-eg.cmd index f9acae0196829..ed5cefa6bb13a 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 8a4688a74a3d5..ac92c569871b5 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 --> [${javac.version},) - [3.3.0,) + [3.9.11,)