Installing Maven on Mac OS

  1. Download Maven binary archive (apache-maven-3.6.1-bin.tar.gz)

2. Go to your Downloads/ in terminal and extract the contents of the archive:

3. Move the extracted content to any folder, eg Applications:

4. Next, setup maven classpath to your environment variable by updating .bash_profile file:

  • open it in terminal:
  • edit the file by adding the following lines:
  • reload .bash_profile :

5. Now you have successfully added Maven, and you can check its version like this:

Everything is unknown until it’s known. Self-learner.

Everything is unknown until it’s known. Self-learner.