title: What is the difference between M2_HOME and MAVEN_HOME
body: <p>I have two version of environment variables for maven home - <code>M2_HOME</code> and <code>MAVEN_HOME</code>.<br></p>
  
  <p>Which one needs to be set?</p>