Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions BUILDING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requirements:

* Unix System
* JDK 17
* Maven 3.3 or later
* Maven 3.9.9 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)
Expand Down Expand Up @@ -63,7 +63,8 @@ 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.9 or later.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add maven installation commands as well ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taken

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe say "compatible maven version" and then where the version requirement is declared. This is just to remove a place where changes are needed the next time a maven update is mandated

Download and Install Maven manually from https://maven.apache.org/install.html
Copy link
Copy Markdown
Member

@pan3793 pan3793 Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's replace this with the real commands

Suggested change
Most package managers do not install required version of Maven i.e. 3.9.9 or later.
Download and Install Maven manually from https://maven.apache.org/install.html
$ 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

Oops, I have the wrong memory, the dev container actually uses Maven 3.9.11, not 3.9.9, sorry for the misleading. Could you update the docs to use 3.9.11?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues, thanks for checking.
I have made the changes

* 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
Expand Down Expand Up @@ -583,7 +584,7 @@ Requirements:

* Windows 10
* JDK 17
* Maven 3.3 or later (maven.apache.org)
* Maven 3.9.9 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)
Expand Down
2 changes: 1 addition & 1 deletion dev-support/win-paths-eg.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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.9
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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.9,)</enforced.maven.version>
</properties>

<modules>
Expand Down