Install Latest Maven On Ubuntu 14.04

Overview

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.

Installing Maven

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

Summary

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

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Java, Linux and tagged , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.