title: Can't access mvn command from command line?
body: <p>I've tried to access <strong>mvn</strong> from command line.</p>
  
  <p><em>Installation path</em></p>
  
  <pre><code>C:\Program Files\Apache Software Foundation\apache-maven-3.1.1
  </code></pre>
  
  <p><em>User variables</em></p>
  
  <pre><code>M2 = %M2_HOME%\bin 
  M2_HOME = C:\Program Files\Apache Software Foundation\apache-maven-3.1.1
  JAVA_HOME = C:\Archivos de programa\Java\jdk1.7.0_25
  </code></pre>
  
  <p><em>System variables</em></p>
  
  <pre><code>Path = %M2%;%JAVA_HOME%/bin; and others...
  </code></pre>
  
  <p>I try to se if Maven is well configured through mvn --version as the manual says but this is the result:</p>
  
  <pre><code>C:\&gt;mvn --version
  "mvn" no se reconoce como un comando interno o externo,
  programa o archivo por lotes ejecutable.
  
  C:\Program Files\Apache Software Foundation\apache-maven-3.1.1\bin&gt;mvn --version
  Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
  Maven home: C:\Program Files\Apache Software Foundation\apache-maven-3.1.1
  Java version: 1.7.0_25, vendor: Oracle Corporation
  Java home: C:\Archivos de programa\Java\jdk1.7.0_25\jre
  Default locale: es_ES, platform encoding: Cp1252
  OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
  </code></pre>
  
  <p>What could it be this? Should I export the variables every time I need them?</p>