Downloading Apache Maven 3.6.3
Apache Maven 3.6.3 is the latest release and recommended version for all users.
The currently selected download mirror is https://artfiles.org/apache.org/. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available. You may also consult the complete list of mirrors.
Apache Maven 3.5.4
System Requirements
Java Development Kit (JDK) | Maven 3.3+ require JDK 1.7 or above to execute - they still allow you to build against 1.3 and other JDK versions by Using Toolchains |
Memory | No minimum requirement |
Disk | Approximately 10MB is required for the Maven installation itself. In addition to that, additional 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 System | No minimum requirement. Start up scripts are included as shell scripts and Windows batch files. |
Mac Os Maven
[How To] Install Apache Maven in Linux, Solaris and Mac OS X Abhijit Sandhan March 6, 2014 Apache Maven, Build Tools, Java Tools Leave a comment 936 Views The Apache Maven is build tool used in Java projects for build automation. Apache Maven is a build automation tool that addresses anyone who wants to build applications using Java. The idea behind the utility is to help make the design process overall smoother.
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.
Link | Checksums | Signature | |
---|---|---|---|
Binary tar.gz archive | apache-maven-3.6.3-bin.tar.gz | apache-maven-3.6.3-bin.tar.gz.sha512 | apache-maven-3.6.3-bin.tar.gz.asc |
Binary zip archive | apache-maven-3.6.3-bin.zip | apache-maven-3.6.3-bin.zip.sha512 | apache-maven-3.6.3-bin.zip.asc |
Source tar.gz archive | apache-maven-3.6.3-src.tar.gz | apache-maven-3.6.3-src.tar.gz.sha512 | apache-maven-3.6.3-src.tar.gz.asc |
Source zip archive | apache-maven-3.6.3-src.zip | apache-maven-3.6.3-src.zip.sha512 | apache-maven-3.6.3-src.zip.asc |
- Distributed under the Apache License, version 2.0
Previous Releases
It is strongly recommended to use the latest release version of Apache Maven to take advantage of newest features and bug fixes.
If you still want to use an old version you can find more information in the Maven Releases History and can download files from the archives for versions 3.0.4+ and legacy archives for earlier releases.
This post shows how to setup Maven on Mac OS and how to create, build and run a new Maven Java project. Before continuing, make sure that a Java SDK 1.7 or greater is installed and that the Java commands are available in your
PATH
environment variable. In a terminal window, run the following command to confirm this:- For a related post on installing a Java SDK and setting up a Java EE development environment with Eclipse Neon see this post:
![Download Apache Maven For Mac Download Apache Maven For Mac](/uploads/1/3/3/8/133895927/770990254.jpg)
- For an example on how to setup a Spring Web MVC project from a Maven archetype in Eclipse Neon, please see this post:
- Installing and Configuring Maven on Mac OS
- Creating a Maven Java Project from an Archetype
- Adding Project Dependencies in the POM File
1 Installing and Configuring Maven on Mac OS
- In this example, Maven 3.5 is used. It can be downloaded as a binary distribution from the Apache Maven Website. The operating system version used here is Mac OS Sierra (10.12.6).
- Unzip the Maven 3.5 files into some folder on the local disk. In this example, the Maven files are unzipped into the
${maven.home}
folder at:
- For instructions on how to add the Maven commands from the
${maven.home}bin
folder to thePATH
environment variable on macOS see:
- Open a terminal window and verify that maven is installed properly by executing the below command to view the Maven version:
- The output should look like the example below, showing the Java version and Java home folder:
- If a proxy is needed to connect to the Internet, edit
${maven.home}/.m2/conf/settings.xml
:
- When a Maven project is built, Maven will download all dependent artifacts (JAR files) from a remote repository to a local repository. By default, Maven will create the local repository in:
- The Maven local repository contains all downloaded artifacts and looks like the example below:
- To change the location of the local repository, edit
${maven.home}/.m2/conf/settings.xml
:
- For more information on Maven, refer to the following guides on the Apache Maven Project site:
- To create a Maven Java project with JUnit support, using the archetype
maven-archetype-quickstart
, execute the command:
- When Maven first downloads required dependencies to the local repository, the build may take a while.
- The output should look like below and result in a
BUILD SUCCESS
message.
- Maven will create a folder using the
artifactId
and create the standard project structure based on thegroupId
:
- The root folder of the Maven project contains a POM file (Project Object Model). Here, the file contains:
Download Apache Maven 3.3.9 For Mac
- To compile and package the Java project, execute in the project root folder (containing the pom.xml file):
- The resulting JAR file is located in the
target
folder of the project:
- It can be executed from the project folder with the
java
command:
- Which will produce the below output:
- As per the
App.java
source file:
3 Adding Project Dependencies in the POM File
- The Maven Central Repository is used to find and add dependencies to a project’s POM file.
- For example, to add support for JSON processing to the project, Google’s GSON API can be used.
- Search for
'GSON'
in the Maven Central Repository to find the Maven dependency information.
- Click on the version link, here 2.8.2, to view the dependency information:
- Copy and paste the dependency information from the Apache Maven section into the project’s POM file:
- The scope of the new dependency is not specified. It is
compile
by default. See Dependency Scope for more information. - The GSON API can now be used in the
App.java
source file to serialize Java objects:
4 Execute the Java Application with the Maven exec Plugin
- Maven can be used to compile and then execute the App class using the
exec
plugin:
- The output will be a JSON representation of the Car object: