Installing Maven 3 on Ubuntu Precise (12.04)


I won’t delve into details of how slowly are the canonical PPAs updated. I’ve found Jay Ginete’s post (please check link at the bottom) mostly useful to solve this issue. I’ve condensed the steps here:

  1. Add Nate Carlson’s PPA to your software sources
  2. Update your local sources
  3. Install maven 3
  4. Creating symbolic link to mvn binary

In detail:

Adding Nate Carson’s PPA: 

sudo add-apt-repository ppa:natecarlson/maven3

(make sure you check the signing key matches the one specified here)

Updating your local sources:

 sudo apt-get update

Installing maven 3:

sudo apt-get install maven3

Creating the link:

sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn

Hope it does work as it did for me. The link to Jay’s post: