Maven Installation Steps
- Download the Apache Maven : Click Me Downloading Apache Maven
- Download : Bivenary tar.gz archi file
- Extract from downloaded file and move inside the Applications. Type following on terminal.
cd Downloads/
pwd
mv apache-maven-3.6.3/Applications/
cd maven-3.6.3/
ls -l
- If you do not have a .bash_profile file ,then create it.
touch .bash_profile
open -e ~/.bash_profile
- Add the M2_HOME environment variable. Edit your ~/.bash_profile . bash file opens and copy paste following code inside it and save it.
export M2_HOME=/Applications/apache-maven-3.6.3
export PATH=$PATH:$M2_HOME/bin
- Go to the terminal
clear
mvn -version
7. If you want to see the maven installation path. Then type: echo $MAVEN_HOME
8. Similarly, the Java path: echo $JAVA_HOME
No comments:
Post a Comment