maven environment
# put it in /etc/profile.d export M2_HOME=/opt/maven/latest export M2=$M2_HOME/bin export PATH=$M2:$PATH