Maven

Distrib:
http://maven.apache.org

Maven 3 Installation:

$ su - root

# cd /tmp
# wget http://apache.mirrors.pair.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

# tar -xvzpf apache-maven-3.3.9-bin.tar.gz
# mkdir -p /opt/maven/3.3.9
# mv apache-maven-3.3.9/* /opt/maven/3.3.9/
# ln -s /opt/maven/3.3.9/ /opt/maven/current



$ su - <username>

$ vi ~/.bash_profile


#### MAVEN 3.3.9 #########################

	export MAVEN_HOME=/opt/maven/current
	export PATH=$PATH:$MAVEN_HOME/bin

#### MAVEN 3.3.9 #########################


$ source ~/.bash_profile
$ mvn -version



Maven 2 Installation:

$ su - root

# cd /tmp
# wget https://archive.apache.org/dist/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.tar.gz

# tar -xvzpf apache-maven-2.2.1-bin.tar.gz
# mkdir -p /opt/maven/2.2.1
# mv apache-maven-2.2.1/* /opt/maven/2.2.1/
# ln -s /opt/maven/2.2.1/ /opt/maven/current



$ su - <username>

$ vi ~/.bash_profile


#### MAVEN 2.2.1 #########################

	export MAVEN_HOME=/opt/maven/current
	export PATH=$PATH:$MAVEN_HOME/bin

#### MAVEN 2.2.1 #########################


$ source ~/.bash_profile
$ mvn -version