Hi All
These are the steps I followed to set the Apache Maven path in my Mac
Step1:- I downloaded the Apache Maven - 3.8.1
This is the location in my Mac { /Users/arjunmac/Downloads/apache-maven-3.8.1 }
Step2:- I Open the terminal and open the .zprofile
by using this command { open -e .zprofile }
Step3:- In that editor I set the MAVEN_HOME path
- export JAVA_HOME=$(/usr/libexec/java_home)
- export ANDROID_HOME=${HOME}/Library/Android/sdk
- export MAVEN_HOME=$/Users/arjunmac/downloads/apache-maven-3.8.1
- export PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$MAVEN_HOME/bin:${JAVA_HOME}/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:{PATH}"
Step4:- after that I close and type source .zprofile to save the changes
Step5:- then I type mvn -version in terminal it displaying the command not found
I check the internet also but no use
kindly provide the solution