How to install maven on Ubuntu 16.04 (Xenial Xerus)


In this tutorial we will see how to install Apache Maven on Ubuntu 16.04 (Xenial Xerus).

Step 1. 

Please Make sure that JAVA_HOME environment variable is set and points to your JDK installation in your system.

So to install Java 8 Open the terminal and run the following command

Step 2.  Now we will install maven 

Install Maven-3

Step 3 . verify if maven is installed

To verify maven  run the following command



Now Apache Maven is installed successfully on your Ubuntu 16.04 (Xenial Xerus).

Partner Sites