Unable to set the Apache Maven path in the Mac

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

  1. export JAVA_HOME=$(/usr/libexec/java_home)
  2. export ANDROID_HOME=${HOME}/Library/Android/sdk
  3. export MAVEN_HOME=$/Users/arjunmac/downloads/apache-maven-3.8.1
  4. 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

i see with mine:

which mvn
/usr/local/bin/mvn

maven installed with:

brew update
brew install maven