Let us look at the steps to install Maven on Linux.
While there are many flavors of Linux (Ubuntu, Fedora, RHEL, SUSE, CentOS, and so on), the steps to set up Maven are similar.
Maven needs Java, specifically the Java Development Kit (JDK). Using the following steps, let us check if it is installed in your Linux system, which is a bit tricky:
java version "1.7.0_65" OpenJDK Runtime Environment (rhel-188.8.131.52.el6_5-x86_64 u65-b17)
The preceding output will still not tell you where your Java is installed, which is required to set
JAVA_HOME. You can get this information by performing the next set of steps. ...