How to install Maven on Ubuntu 14.x

By |2017-12-24T13:40:10+05:30May 1st, 2017|maven|

In this tutorials, I am going to show you how to install Maven on Ubuntu 14.x.

Maven on Ubuntu 14.x :

Unlike installing the maven on windows versions, it is not necessary to download the maven zip from external resources. We can easily install the maven using basic Linux commands.

Steps to install Maven on Ubuntu :

Follow the below steps.

Step – 1 :

Open the terminal by passing the below command :


Step – 2 :

Search for Maven packages on your machaine by passing the below command :

apt-cache search maven

Probably you can see the below text on your end of the terminal.

[box type=”shadow” align=”alignleft” class=”” width=”100%”]

maven – Java software project management and comprehension tool
maven-ant-helper – helper scripts for building Maven components with ant
maven-debian-helper – Helper tools for building Debian packages with Maven
maven-repo-helper – Helper tools for including Maven metadata in Debian packages
testng – testing framework for Java


Step-3 :

Install the latest maven on Ubuntu by passing the below command your terminal.

sudo apt-get install maven

It will ask your sudo password and then ask to confirm the continuation. After confirming it will take few minutes to download and setting up.

Step-4 :

After completion of above step, we can test it by knowing the maven version. To get the maven version you can pass the below command.

mvn -version

[box type=”shadow” align=”alignleft” class=”” width=”100%”]

Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: “linux”, version: “4.4.0-71-generic”, arch: “amd64”, family: “unix”


If you see the above information you can confirm that, maven has successfully installed on your Ubuntu machine.

Happy Learning 🙂

About the Author:

Hi Folks, you have reach this so far, that shows you like what you are learning. Then why don't you support us to improve for bettor tutorials by leaving your valuable comments and why not you keep in touch with us for latest updates on your favorite blog @ facebook , twitter , Or Google+ ,

Leave A Comment