How to install maven on Ubuntu 18.04 LTS (Linux)


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



Now Apache Maven is installed successfully on your Ubuntu 18.04.

Configuring Apache Maven Environment

cd in to the ‘/etc/profile.d’ folder and create a new file

Copy and paste the following configuration in file

Save the file and close it.

provide the following commands to make executable and reload it.


Video Instructions


Partner Sites