Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Maven on OSX 10.10 (Yosemite)?

Tags:

I am trying to install Maven on my Mac, but I can not get the JAVA_HOME variable right. The path that the maven website gives is,

usr/java/jdk1.7.0_51 

however the java folder does not exist in /usr/ for me. I installed the JRE and JDK, nothing changed. How can I fix this?

like image 280
Zach443 Avatar asked Nov 08 '14 01:11

Zach443


People also ask

How do I install Maven on Mac?

2.1) Download Maven for Mac OSGo to the Maven Download site: https://maven.apache.org/download.cgi Download the “Binary tar. gz archive” file as shown in the below image. After downloading, extract it using the below command. The binaries will be extracted in the “apache-maven-3.6.

How do I know if Maven is installed on Mac?

To test Maven installed or not in your Mac issue command mvn -v in Terminal, it shows you installed version if already installed otherwise error.


1 Answers

Using brew - brew install maven - that's it.

like image 197
Adam Lukaszczyk Avatar answered Sep 28 '22 10:09

Adam Lukaszczyk