Download and extract Maven.
Add Maven bin directory path to the bashrc file, so you can run Maven from any location.
sudo vi $HOME/.bashrc
Go to the bottom of the file and add the following using a editor such as VI.
export M2_HOME=/usr/local/apache-maven-3.2.3
export PATH=$PATH:$M2_HOME/bin
Make sure JDK path is also set
export JDK_PREFIX=/usr/local/jdk1.7.0_71
export PATH=$PATH:$JDK_PREFIX/bin
No comments:
Post a Comment