Maven's environment variable configuration process

1. Right-click computer properties
①Advanced system settings
②Environment variables
Insert picture description here

2. MAVEN_HOME (fill in the parent file of the bin file in the jdk folder, which is the file when the bin file is just visible, and then copy the path)
E:\lms_help\apache-maven-3.3.9
Insert picture description here
3.classpath Join
;%MAVEN_HOME%\bin
Insert picture description here

4. Path add
%MAVEN_HOME%\bin
Insert picture description here
5. Open cmd and
directly enter
mvn -version and
output version information is correct
Insert picture description here

Guess you like

Origin blog.csdn.net/BOWWOB/article/details/111410531