I set the following system veriables (OS = Vista):
M2_HOME = C:\Program Files\Maven
M2 = %M2_HOME%\bin
path = %M2%
If i run mvn — version I get:
mvn: command not found
Anyone have any idea why this could be?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are on windows, what i suppose you need to do set the PATH like this:
furthermore i assume you need to set your path to something like C:…\apache-maven-3.0.3\ cause this is the default folder for the windows archive.
On the other i assume you need to add the path of maven to your and not set it to only maven so you setting should look like this: