# cd /opt
# wget -c http://www.eng.lsu.edu/mirrors/apache//maven/binaries/apache-maven-3.0-bin.tar.gz
# tar xvzf apache-maven-3.0-bin.tar.gz
# vi /etc/profile
Add the following lines to the end of the file
M2_HOME=/opt/apache-maven-3.0
export M2_HOME
PATH=$PATH:$M2_HOME/bin
:wq // save the file
# source /etc/profile
Apache maven is installed and ready to use.
No comments:
Post a Comment