December
21st,
2017
First of all lets check for Maven in your system, because some versions of OS X came with Apache Maven 3 built in installed.
if you are getting a response as follows.
Congratulations!! you don’t want to install Maven, You already have it.
But if you are getting a message like this, you can go ahead with the tutorial
Installing Maven
Step I - Downloading Maven
Download maven from maven.apache.org
Step II - Extract the tar.gz
Navigate to the directory where tar.gz
file downloaded & extract it to /usr/share/maven
. You can use following terminal commands to exact directly in to /usr/share/maven
.
Remember to change the maven version in the command!.
Step III - Update the HOME & PATH variables
Okay! now check the previous command again
if you are getting a response as follows.
Congratulations! 🎉 you have correctly configured the Maven in your Mac!