Установите Maven в Ubuntu
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install maven
imaskm
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install maven
sudo apt update
sudo apt install maven