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?
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.
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.
Using brew - brew install maven
- that's it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With