How To Download Apache Maven On Terminal Mac

What is maven?

Maven

Apache maven is a build automation tool that is mainly used in java projects. The word maven means accumulation of knowledge. The main purpose of maven is to simplify the build process for developers. For building a project if the developer follows the guidelines or structure provided by maven then build process becomes easier.

Install Maven on Mac Maven is the most widely used build and project dependency management tool for Java-based applications. We can install Maven on Mac. 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.

How to install maven in Mac OS?

To install maven first of all we will have to download the latest maven from apache maven site. Following is the download link:

As soon as the download is done, extract the downloaded file and move it to the Library directory. The file we downloaded is: apache-maven-3.6.1-bin.tar.gz and after extracting we had this folder: apache-maven-3.6.1

Inside the Library directory we had to create a Maven directory and moved the apache-maven-3.6.1 inside it. At the end the path was: /Library/Maven/apache-maven-3.6.1

At this point we are very much ready. Now all we need to do is export the path in .bash_profile file.

How To Download Apache Maven On Terminal Mac Os

Apache maven download 3.3.9

Apache Maven Repository

So add the following lines in the .bash_profile file: