title: Intellij 'mvn' is not recognized as an internal or external command
body: <p>I have installed maven on my pc and if I type &quot;mvn --version&quot; in the cmd, I get:</p>
  <pre><code>Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T14:57:37+03:00)
  Maven home: C:\Users\mmmm\Downloads\apache-maven-3.3.3-bin\apache-maven-3.3.3
  Java version: 1.8.0_251, vendor: Oracle Corporation
  Java home: C:\Program Files\Java\jdk1.8.0_251\jre
  Default locale: en_US, platform encoding: Cp1252
  OS name: &quot;windows 10&quot;, version: &quot;10.0&quot;, arch: &quot;amd64&quot;, family: &quot;dos&quot;
  </code></pre>
  <p>The problem is that from Intellij, if I try to do a mvn clean install from the terminal, I get &quot;'mvn' is not recognized as an internal or external command,
  operable program or batch file.&quot;</p>
  <p>My system variables contain these:</p>
  <pre><code>M2_HOME = C:\Users\mmmm\Downloads\apache-maven-3.3.3-bin\apache-maven-3.3.3
  M2 = %M2_HOME%\bin
  Path = %M2_HOME%\bin
  </code></pre>
  <p>How can I fix this?</p>