Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Tuesday, September 22, 2015

How to install Maven on Ubuntu 14?

Firstly, download Maven Tar file from: https://maven.apache.org/download.cgi

Now under console follow the next commands:

user@user:~$ sudo tar -zxvf apache-maven-3.2.5-bin.tar.gz
user@user:~$ sudo mkdir -p /usr/lib/apache/maven/3.2.5/
user@user:~$ sudo mv apache-maven-3.2.5 /usr/lib/apache/maven/3.2.5
user@user:~$ cd /usr/lib/apache/maven/3.2.5/


Secondly, edit profile file:

user@user:~$ sudo gedit /etc/profile

Add the following lines at the end of the file in the above file:
-----

MAVEN_HOME=/usr/lib/apache/maven/3.2.5/apache-maven-3.2.5
PATH=$PATH:$MAVEN_HOME/bin
export MAVEN_HOME
export PATH
 

----

Execute profile to run the previous changes:

user@user:~$ source /etc/profile

Next of prove the configuracion trying version option of maven:


user@user:~$ mvn -ver