How To Install Apache Maven 3.2.1 On Ubuntu 14.04, Linux Mint 17 And Their Derivative Systems

Hello Linux Geeksters. As you may know, Apache Maven is a tool for project management and comprehension, based on the POM (project object model) concept.

The latest version available is Apache Maven 3.2.1, which comes with a few improvements, including: use wildcards when installing dependencies, exclude modules from reactor, via command-line, exclude all dependencies for a particular one.

how to install Apache Maven 3.2.1 on Ubuntu 14.04 Trusty Tahr, Linux Mint 17 Qiana, Pinguy OS 14.04 and Elementary OS 0.3 Isis.

In this article I will show you how to install Apache Maven 3.2.1 on Ubuntu 14.04 Trusty Tahr, Linux Mint 17 Qiana, Pinguy OS 14.04 and Elementary OS 0.3 Isis.

Because it is not available via any repository for Ubuntu 14.04 and derivatives, we have to download the deb package and install it via command-line. I prefer gdebi over dpkg, due to the fact that it also handles dependencies:

First, remove the previous mavens of maven, do:

$ sudo apt-get remove maven*

Install Maven 3:

$ sudo apt-get install gdebi
$ wget http://ppa.launchpad.net/natecarlson/maven3/ubuntu/pool/main/m/maven3/maven3_3.2.1-0~ppa1_all.deb
$ sudo gdebi maven3_3.2.1-0~ppa1_all.deb

Symlink it, for an easier usage:

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

Optional, to remove maven, do:

$ sudo apt-get install maven*

Liked it? Take a second to support Geekster on Patreon!
Tagged with: , , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!