title: Maven isn't installing correctly
body: <p>I am trying to install maven v3.5.4 onto my computer and whenever I try the 'mvn -version' command, I get </p>
  
  <blockquote>
    <p>'mvn' is not recognized as an internal or external command,
    operable program or batch file.</p>
  </blockquote>
  
  <p>I have looked up multiple tutorials on how to do this, and they are giving nearly the same information. Add system variables M2 and M2_HOME, then append a directory to the Path system variable. I have the System Variables configured to the following:</p>
  
  <p><strong>M2:</strong></p>
  
  <ul>
  <li>Name: M2</li>
  <li>Value: C:\Program Files\Apache\maven\bin</li>
  </ul>
  
  <p><strong>M2_HOME:</strong></p>
  
  <ul>
  <li>Name: M2_HOME</li>
  <li>Value: C:\Program Files\Apache\maven</li>
  </ul>
  
  <p><strong>MAVEN_HOME:</strong></p>
  
  <ul>
  <li>Name: MAVEN_HOME</li>
  <li>Value: C:\Program Files\Apache\maven</li>
  </ul>
  
  <p><strong>Path:</strong></p>
  
  <ul>
  <li>Name: Path</li>
  <li>Value: %M2_HOME%\bin;%JAVA_HOME%\bin</li>
  </ul>
  
  <p>I have seen people saying that there should be a .exe or .bat file inside the bin directory. I do not have any of these. I only have 4 files inside this folder. <a href="https://i.stack.imgur.com/fLuM7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fLuM7.png" alt="Maven bin directory"></a></p>
  
  <p>This could perhaps be the issue. The path to my Maven directory is: <a href="https://i.stack.imgur.com/XgcsI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XgcsI.png" alt="Maven Folder Path"></a>
  I have the following maven related system variables:</p>
  
  <p><a href="https://i.stack.imgur.com/22bL9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/22bL9.png" alt="System Variables"></a></p>
  
  <p>And my Path variable is:</p>
  
  <p><a href="https://i.stack.imgur.com/3FEUD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3FEUD.png" alt="Path Variable"></a></p>
  
  <p>I'm not sure how to fix this issue so if anyone knows, please let me know.</p>