Setting up Maven

Medical Technology, Healthcare & Government IT

.
Categories
Category Groups

Apache Maven Installation and Configuration

Make sure [Java is available](../System Operations \(SysOps\)/Setting up Java.md):

java -version

Maving is available at http://maven.apache.org/download.html. Download and install Apache Maven-2.2.1:

mkdir -p $HOME/setup; cd $HOME/setup
wget http://apache.mirrors.redwire.net//maven/binaries/apache-maven-2.2.1-bin.tar.gz
sudo tar xvf apache-maven-2.2.1-bin.tar.gz -C /opt

Now set variables in server.

vi $HOME/.bashrc

Copy and paste below lines:

export MVN_HOME=/opt/apache-maven-2.2.1
export PATH=$MVN_HOME/bin:$PATH

Reset your environment:

. $HOME/.bashrc
Original Link

Leave a Reply