Installing maven in CentOS 7
Get the maven binary distribution from maven official site
Extract the download file
Move the extacted folder to the installation folder (requires superuser su):
Create a symbolic link that will allow to update maven easily in the future.
Create environment variables adding the following content to the file /etc/profile.d/maven.sh
this will set the enviroment variables for all the users everytime the server starts.