Installing Maven 3 on Windows 7 -


when type "mvn --version" or "mvn -version", receive error "mvn not recognized internal or external command, operable program or batch file.

so: win 7 64 bit

maven directory: c:\users\xxx\documents\work\apache-maven-3.0.5

in system evironment variables i've set

m2_home = c:\users\xxx\documents\work\apache-maven-3.0.5

m2 = %m2_home%\bin

java_home = c:\program files\java\jdk1.7.0_21

path = %java_home%/bin;%m2%

can see i'm not doing right or else need able use mvn command, please , thank you.

set user variable m2_home = c:\apache-maven-2.2.1 system variable : edit "path" variable add %m2_home%\bin; (or) c:\apache-maven-2.2.1\bin;

close command prompt , try again 'mvn -version'


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -