Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

maven set up

Hi,

i am following below steps to install maven on my windows laptop
http://www.tutorialspoint.com/maven/maven_environment_setup.htm

after all the steps when i try below command i am getting error as below

please advise

my maven is at below location
C:\Program Files\apache-maven-3.3.9-bin\apache-maven-3.3.9

with directories like bin, boot etc


C:\Users\ccc>mvn -version

Error: M2_HOME is set to an invalid directory.
M2_HOME = "C:\Program Files\apache-maven-3.3.9-bin\apache-maven-3.3.9;"
Please set the M2_HOME variable in your environment to match the
location of the Maven installation
maven.png
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

restart of laptop fixed it