title: Maven M2_HOME set to an invalid directory (Windows 7)
body: <p>I've tried installing Maven to Windows 7 with poor results. Some basic info:</p>
  
  <p>Maven installation directory:   <code>C:\Program Files\Apache Software Foundation\apache-maven-3.0.4</code>
  System Variable "<code>M2_HOME</code>":  <code>C:\Program Files\Apache Software Foundation\apache-maven-3.0.4\</code>
  System Variable "<code>Path</code>" :  <code>%M2_HOME%apache-maven\src\bin;%JAVA_HOME%\bin</code></p>
  
  <p>If I run <code>mvn --version</code> in the command path, I get the error message:</p>
  
  <blockquote>
    <p>Please set the <code>M2_HOME</code> variable in your environment to match the location of the Maven installation</p>
  </blockquote>
  
  <p>So at the moment the subdirectory for <code>mvn</code> is not set according to the instructions, which would be <code>%M2_HOME%\bin</code>. If I replace <code>%M2_HOME%apache-maven\src\bin</code> with that one, I get:</p>
  
  <blockquote>
    <p>mvn is not recognized as an internal or external command, operable program or batch file</p>
  </blockquote>
  
  <p>In the Maven installation directory (or in the zip-file) there is no <code>\bin</code> folder directly in <code>apache-maven-3.0.4</code> and I wonder if there should be one?</p>
  
  <p>I'm a complete novice to Maven, hopefully you guys can help.</p>
  
  <p>By the way the Java command works from any directory, so I don't think that's the issue here, but I can't be sure.</p>