Install Maven on Ubuntu Using the Official code example
Example: install maven in ubuntu
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install maven
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install maven