Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Maven installation in windows 8

I followed steps mentioned in this link http://maven.apache.org/download.cgi

Whenever I type mvn --version in cmd. I got 'mvn' is not recognized as an internal or external command, operable program or batch file.

But when I opened cmd with "Run as a administrator" it worked.

OS: windows 8

How can I run mvn for any user on windows 8.

like image 887
Mohyt Avatar asked Feb 16 '23 23:02

Mohyt


1 Answers

Try setting the environment variable M2 as System variable instead of User variable.

like image 120
Jaya Avatar answered Feb 24 '23 05:02

Jaya