'How to add Maven to the Path variable windows 10?
Then I tried to add it to the path of Windows 10 as below:
Right click on my computer
Properties
Advanced System Setting
Environment Variable
New user variable and added Maven_Home with value:
C:\Users\Dell\Desktop\Selenium Course\apache-maven-3.8.1\bin
Add it to path variable with:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%MAVEN_HOME%\bin;
Open cmd and ask for mvn -version in desktop
CMD : 'mvn' is not recognized as an internal or external command, operable program or batch file.
Any help please
Solution 1:[1]
Inside System variables add:
- Variable name: MAVEN_HOME
- Variable value: \apache-maven-3.8.4
Then on your path add:
- %MAVEN_HOME%\bin
Don't forget to restart your terminal. Then check if it's working with the command mvn -version.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | André |
