To install Maven on Ubuntu 14.04 execute the following command in the terminal:

sudo apt-get install maven

This will install Maven 3.