To set maven home
#edit .profile and .bash_profile in the home directory export M2_HOME=/usr/share/maven