How to install maven on Ubuntu 18.04 LTS (Linux)






Install-Maven-on-Ubuntu-16.04

In this tutorial we will see how to install Apache Maven on Ubuntu 18.04 linux.

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

or

Output

Now Apache Maven is installed successfully on your Ubuntu 18.04.