Maven configuration

    First of all, you need to install the jdk1.8 version locally

    Secondly, download the latest version of the installation package from the official website: http://maven.apache.org/download.cgi , and then unzip the installation package to the specified location; usually do not put it in the system disk;

    Then configure the environment variables, right-click on my computer and select "Properties" → "Advanced System Settings" → "Environment Variables" → "New in System Environment Variables", create a new M2_Home, and the corresponding value is the storage location of maven (mine is F :\maven) and then confirm; find the information that the variable is path, select it, and then click to add "%M2_Home%\bin" at the end of the value of path in editing (if there is no ";" before the value here, it needs to be imported before adding the value" ;"), then click "OK" to exit;

    Finally, test whether the maven installation is successful: open the command window and enter mvn -version; it appears as shown in the figure:

 

 

Guess you like

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