Install Apache Maven on Ubuntu/Linux
Apache Maven is an open source, software project management,
build automation tool for Java projects.
The installation process of Apache Maven is simple. Follow
the steps below to install Apache Maven using your terminal
on Ubuntu/Linux OS:
- Start by updating your system apt:
sudo apt update
- Run the following command to install Apache Maven:
sudo apt install maven
-
Verify the Maven version after installation using the
command:
mvn -version
Output should look something like this:
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.10, vendor: Ubuntu, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-70-generic", arch:
"amd64", family: "unix"