Maven is a Java program, to use it you should already download and install JRE or JDK and Apache Maven in your environment.
In this environment you can check that Java (JRE) is already installed by running
We can work using maven by running executable command
mvn from you shell prompt.
Try to run
mvn -version to check whether you have Maven installed in this environment.
If you get output with Maven version information, then Maven is already installed and you are ready to use Maven.
whereis mvn to see where is you
mvn executable script is located.