Installing Maven on AWS EC2
- Go to official repo and grab the
.tar.gz
URL. - Go to
/opt/
dir with root access preferably and run:wget maven-tar.gz-url
- Once it is installed, you need to configure the $PATH
M2_HOME=/opt/maven M2=/opt/maven/bin
Locate the java usingfind / -name java
And add the java to the $PATH as well. - Coming back to /opt/ and extract the tar.bz using
tar -zxvf tar-package
- Rename the dir
mv maven-release-* maven
