It’s well known that Ubuntu ships and keeps the same main branch of software that was shipped with the version on Ubuntu at the time. A good example is Ubuntu 14.04 has HAProxy 1.4 even though 1.5 came out before it went public. This was due to timing of the HAProxy 1.5 release so it didn’t have enough time to be included in the final version. Ubuntu 14.04 will carry on using 1.4.
To get around this Ubuntu uses Personal Package Archive or PPAs which are created an maintained outside of Ubuntu but allows others to take advantage of newer versions of software.
Add a 3rd party PPA with Maven:
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
Update software packages with a new repository:
sudo apt-get update
Install Maven3:
sudo apt-get install maven3
Add a symlink so that the maven command is in the system path:
sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn
Fairly easy and the PPA also tells you what the current version is and what the list of version history.
Install Apache Maven 3.2.1 in Ubuntu 14.04