Wednesday, October 16, 2024

Download & Install Maven

Downloading Apache Maven 3.9.9

Apache Maven 3.9.9 is the latest release: it is the recommended version for all users.

System Requirements

Java Development Kit (JDK)Maven 3.9+ requires JDK 8 or above to execute. It still allows you to build against 1.3 and other JDK versions by using toolchains.
MemoryNo minimum requirement
DiskApproximately 10MB is required for the Maven installation itself. In addition to that, disk space will be used for your local Maven repository. The size of your local repository will vary depending on usage but expect at least 500MB.
Operating SystemNo minimum requirement. Start up scripts are included as shell scripts (tested on many Unix flavors) and Windows batch files.

Files

Maven is distributed in several formats for your convenience. Simply pick a ready-made binary distribution archive and follow the installation instructions. Use a source archive if you intend to build Maven yourself.

In order to guard against corrupted downloads/installations, it is highly recommended to verify the signature of the release bundles against the public KEYS used by the Apache Maven developers.

LinkChecksumsSignature
Binary tar.gz archiveapache-maven-3.9.9-bin.tar.gzapache-maven-3.9.9-bin.tar.gz.sha512apache-maven-3.9.9-bin.tar.gz.asc
Binary zip archiveapache-maven-3.9.9-bin.zipapache-maven-3.9.9-bin.zip.sha512apache-maven-3.9.9-bin.zip.asc
Source tar.gz archiveapache-maven-3.9.9-src.tar.gzapache-maven-3.9.9-src.tar.gz.sha512apache-maven-3.9.9-src.tar.gz.asc
Source zip archiveapache-maven-3.9.9-src.zipapache-maven-3.9.9-src.zip.sha512apache-maven-3.9.9-src.zip.asc


Installing Apache Maven

The installation of Apache Maven is a simple process of extracting the archive and adding the bin directory with the mvn command to the PATH.

Detailed steps are:

  • Have a JDK installation on your system. Either set the JAVA_HOME environment variable pointing to your JDK installation or have the java executable on your PATH.

  • Extract distribution archive in any directory

unzip apache-maven-3.9.9-bin.zip

or

tar xzvf apache-maven-3.9.9-bin.tar.gz

Alternatively use your preferred archive extraction tool.

  • Add the bin directory of the created directory apache-maven-3.9.9 to the PATH environment variable

  • Confirm with mvn -v in a new shell. The result should look similar to

Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /opt/apache-maven-3.9.9
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

No comments:

Post a Comment