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"

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap