Maven Setup and Installation on Linux OS
Maven is a build automation tool used primarily for Java projects, so you must have Java installed in order to proceed.
- Written In: Java
- Operating System: Cross Platform
- Type: Build Tool
- Website: https://maven.apache.org/
Prerequisites :-
JDK must be installed. (Link to Install and setup Java on Ubuntu )
In this tutorial, we will learn how to setup maven on Linux environment.
Steps to setup Maven on Linux system:-
Maven installation is quite an easy task. For this, we have to follow few steps mentioned below.
Check for Maven package:-
In this step, we will check whether maven packages are installed or not.
Open a terminal and run the below mentioned command:-
apt-cache search maven
It returns all the available Maven package.
Install Maven:-
To install the latest version of Maven run below mentioned command:-
sudo apt-get install maven
Validation:-
In this step, we will validate maven installation by running below mentioned command:-
mvn -version
It will return the latest version of maven installed on your system.
Maven Installation Directory:- /usr/share/maven
Java Version:- 1.8.0_121
Conclusion:-
Hope the above steps will be helpful to setup maven on Linux system.
thank alot for linux setup