sudo apt-get remove maven2
The whole process I came up with is as follows:
- sudo -H gedit /etc/apt/sources.list
-
Add the following line the sources.list file:
deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main
deb-src http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main
-
sudo apt-get update && sudo apt-get install maven3
- sudo ln -s /usr/share/maven3/bin/mvn /usr/bin/mvn