title: 'mvn' is not recognized as an internal or external command,
body: <p>I get the following error when I type the command <code>mvn --version</code>:</p>
  
  <blockquote>
    <p>'mvn' is not recognized as an internal or external command,
    operable program or batch file.</p>
  </blockquote>
  
  <p>I have also followed <a href="https://stackoverflow.com/questions/11890116/apache-maven-install-mvn-not-recognized-as-an-internal-or-external-command-a">this</a> but still I am unable to get the work done.</p>
  
  <p>when I type this command <code>echo %M2_HOME%</code> I get path printed as <code>D:\Program Files\apache-maven-3.0.4
  </code>
  when I type 'echo %M2%' I get the path printed as <code>D:\Program Files\apache-maven-3.0.4\bin</code></p>
  
  <p>Environment : <code>Windows XP</code></p>