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: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

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