How to install Apache Maven on Ubuntu

We will make use of the apt package manager to install maven on Ubuntu Operating System.


Installation Command:

    Execute the below command in Terminal.

    # sudo apt install maven
Install Maven on Ubuntu

Once the installation is complete, you can validate that the installation was proper by running the maven version command.


# maven -version

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.12, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.11.0-38-generic", arch: "amd64", family: "unix"

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!