title: Maven environment mac
body: <p>I'm trying to build something with maven, but keep getting the following error in intellij</p>
  
  <pre><code>-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
  </code></pre>
  
  <p>So after searching the internet I found some ideas with the environment variables. But I checked with mvn -version and this is the response I get:</p>
  
  <pre><code>    Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
      Maven home: /usr/local/Cellar/maven/3.3.9/libexec
      Java version: 1.8.0_65, vendor: Oracle Corporation
      Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
      Default locale: nl_NL, platform encoding: UTF-8
  OS name: "mac os x", version: "10.11", arch: "x86_64", family: "mac"
  </code></pre>
  
  <p>So I don't really know what I need to do extra to get this started?</p>