maven installation (windows version)

(1) Open Baidu, enter the keyword maven, and select "official website"

(2) After entering the official website, select the "Download" item in the left menu bar



(3) Go to the download page, select the red circle to define the part to download


(4) After the installation package is downloaded, move the package to the folder where maven is installed and unzip it

 


(5) Configure maven environment variables

 



 


(6)

      A. Create two new system variables, M2_HOME and MAVEN_HOME, whose values ​​are the maven installation directory. Maven says to just add M2_HOME, but some projects still refer to Maven's folder MAVEN_HOME, so to be on the safe side add it too.

      B. Modify the environment variable PATH and add the maven bin folder to PATH%M2_HOME/bin%

(7) Verify that maven is installed successfully

 

Shortcut key win+r, enter cmd, enter command mode



 

The above format, that maven installation is successful

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326265737&siteId=291194637