Frequently Asked Questions

  1. How do I install Maven 3.9 on Ubuntu?
How do I install Maven 3.9 on Ubuntu?

Ubuntu 22.04 LTS apt package manager still installs Maven 3.6.3.

You will need to download and install Maven 3.9 directly from Apache.

Remove the current version:
sudo apt-get purge maven
Download the latest version:
wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz
tar -xvf apache-maven-3.9.6-bin.tar.gz
Installation:
sudo cp -r apache-maven-3.9.6 /opt
export PATH=/opt/apache-maven-3.9.6/bin:$PATH