Setting up Maven

Medical Technology, Healthcare & Government IT

Category Groups

Apache Maven Installation and Configuration

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

java -version

Maving is available at Download and install Apache Maven-2.2.1:

mkdir -p $HOME/setup; cd $HOME/setup
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