apache - mvn -version not working -


i downloaded apache-maven-3.2.5 on system. setting up, changed environment variables follows:

m2_home: c:\programfiles(x86)\apache\apache-maven-3.2.5 maven_home: c:\programfiles(x86)\apache\apache-maven-3.2.5\bin path: c:\programdata\oracle\java\javapath;c:\program files (x86)\lenovo\fusionengine;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\program files (x86)\nvidia corporation\physx\common;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\ipt;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;%java_home%\bin;%m2_home%\bin; 

on running mvn -version, shows error :

'mvn' not recognised external or internal command, operableprgram or batch file 

i went across various other links on stackoverflow giving solution same problem. tried many: restarting system after making maven_home , m2_home system variables. tried mentioning path bin in path variable explicitly i.e. %path%;c:\programfiles(x86)\apache\apache-maven-3.2.5\bin;. also, included java_home variable in path, though not required running mvn -version. tried running in administrator mode too. no improvements here.

so, ran command checking path:

dir %m2_home%\bin\mvn* 

and gives output:

the system cannot find path specified 

so, explicitly echoed 3 variables in command prompt seem give correct paths. problem? tried re-downloading zip files , extracted again , modified variables changing destination directories. nothing seems work.

your program files folder name contains spaces. change programfiles(x86) program files (x86) or progra~2.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -