Reputation: 21
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
Upvotes: 2
Views: 6801
Reputation: 1
Remove the bin
from MAVEN_HOME. When the path is building you add bin
again, then the path the machine is looking for is
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;%MAVEN_HOME%\bin\bin;
which is wrong.
Upvotes: 0
Reputation: 2024
Inside System variables add:
Then on your path add:
Don't forget to restart your terminal. Then check if it's working with the command mvn -version
.
Upvotes: 1