Step -1:
cd /opt
sudo wget http://www-us.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.zip
unzip apache-maven-3.5.3-bin.zip
Step -2:
#Add below content to ~/.bashrc
export M2_HOME=/home/ec2-user/apache-maven-3.5.3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
Step-3:
#Verify installation
source ~/.bashrc
mvn --version
No comments:
Post a Comment