How to install Maven on Mac OS Beginners Tutorial

Notes:

Step 1
Check if Maven is already installed
$ mvn –version

Step 2
Download Maven from internet
https://maven.apache.org/download.cgi

Step 3
Unzip and place at some location on your system

Step 4
Set System variables
M2_HOME
PATH

Step 5
Check again if Maven is installed


To Make Maven available for future sessions

Step 6
Create .bash_profile
$ touch .bash_profile

Command to view hidden files
$ defaults write com.apple.finder AppleShowAllFiles TRUE


 

2