Languages
[Edit]
EN

Ubuntu 20.04 - install Apache Maven (mvn command)

9 points
Created by:
Frank-van-Puffelen
409

In this short article we would like to show how to install Apache Maven (mvn command) on Ubuntu 20.04 using default package tool (apt command).

Quick solution (run following commands):

sudo apt update
sudo apt install maven

Note: maven requires java, so check if java is installed. 

 

Testing maven installation

To check if maven is installed proper way, use following command:

mvn -v

Output:

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 14.0.1, vendor: Private Build, runtime: /usr/lib/jvm/java-14-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-48-generic", arch: "amd64", family: "unix"

 

Alternative titles

  1. Ubuntu 20.04 - install mvn command
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join