简体   繁体   中英

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM