Download a binary release of Maven http://maven.apache.org/download.html; it is available in various formats, and most of the archive tools are able to extract them. Extract it in a convenient location, and follow rest of the procedure for different operating systems.
Assuming the expanded location of Maven archive to be /usr/local/apache-maven-3.1.0
; execute the following commands in order to install Maven:
Create a soft link to the Maven installation. This would save you from changing the path variables in case you go for a version upgrade.
ln -s /usr/local/apache-maven-3.1.0 maven
Export the variable M2_HOME
export M2_HOME=/usr/local/maven export PATH=${M2_HOME}/bin:${PATH}