Following this tutorial link
Download maven from link
I am adding these variables: in the system path.
M2_HOME:
C:\programs\apache-maven-3.0.3
M2:
%M2_HOME%\bin
JAVA_HOME:
C:\Program Files\Java\jdk1.6.0_25
Path:
%JAVA_HOME%\bin; %M2%
Does not recognize the mvn
edit: 1
edit: 2
for the creation of the variables for maven, create variable with its values, in this way:
I followed the steps of @Voiser
reboot the machine, now this error comes out Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
edit 3: The variables in my system are:
C: \ Users \ DH-User15> echo% M2_HOME%% M2_HOME%
C: \ Users \ DH-User15> echo% M3_HOME% C: \ apache-maven-3.5.0
C: \ Users \ DH-User15> echo% M2% C: \ apache-maven-3.5.0 \ bin
C: \ Users \ DH-User15> echo% path% ... C: \ apache-maven-3.5.0 \ apache-maven \ src \ bin