title: IntelliJ can't find my M2_HOME, why is that?
body: <p>When I create a new Maven project, I see an error message that says:</p>
  
  <blockquote>
    <p>[FATAL_ERROR] Cannot start Maven: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.</p>
  </blockquote>
  
  <p>In terminal (I'm on a Mac) if I do:</p>
  
  <pre><code>echo $M2
  
  echo $M2_HOME
  </code></pre>
  
  <p>it displays the full path to my <code>/apache-maven-3.0.3/bin</code> and <code>/apache-maven-3.0.3</code> folders.</p>
  
  <p>Why would IntelliJ not be able to pick this up?</p>