• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven configuration error

 
umesh annegirikar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello i am new to maven i have downloaded the maven and extracted it on my laptop's C drive in the following path

C:\apache-maven-3.2.1
then after i am trying to configure it on windows for that i have follow the below steps
1)Creating the two system variable M2_HOME and M2 and given values as C:\apache-maven-3.2.1 and %M2_HOME%\bin
2)edit the value of path variable from C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;%JAVA_HOME%
to C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;%JAVA_HOME%;%M2%

and when on my console to check the configuration when i type mvn --version then it shows the error that mvn is not recognized as internal or external command so please let me know what is wrong
please tell me this as i am getting stuck since last 2 days i have also trying to check the log but don't found any log for the maven in installation directory

Regards,
Umesh Annegirikar
 
Luan Cestari
Ranch Hand
Posts: 163
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is the environment variable, not maven. One common problem is that terminal window/command prompt that you opened before setting the PATH will remain unchanged after any configuration made (one new terminal window will reload the new definitions). Another common error is a typo. For this problem, try first to run the environment definition statement in the terminal window and check if it works fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic