Maven Download official website download: http://maven.apache.org/download.cgi Click on the link for the official website download page, turn to the indicated location, click the Red box option to download MAVEN installation 1, unzip the download, unzip to the location you want to be good, I'm unzipping under D:/tools. 2, configure environment variables My Computer--Properties--Advanced system settings--environment variables, open environment variables have up to two locations can be added, above is for a user, the following is valid for all users, add where their own decision to click New, the variable name is maven_home, the variable value is the location of your MAVEN decompression, I configure the following and then find the environment variable path, then click Edit, at the end of the variable value added "%maven_home%\bin;" 3, verify that MAVEN is installed successfully windows+r, enter cmd, open the Command window input mvn-v Enter, see as shown, the installation is successful 4, modify the MAVEN local warehouse we use MAVEN to manage the jar package, MAVEN will first in the local warehouse to find the corresponding Jar, can not find to automatically according to the configuration to http://search.maven.org/download, after the download is placed in the local warehouse, then where is this local warehouse? If you haven't changed, the default is under c:/users/user name/.m2, we can modify the location of this local repository by modifying Maven's Setting.xml file to open D:\tools\apache-maven-3.5.2\ conf under Setting.xml file, add <localrepository>d:\tools\repository</localrepository>, as shown below, So the local repository will be changed to where we want it.
[HTML]View PlainCopy
- <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/ Settings-1.0.0.xsd ">
- <Spanstyle=> </span > <localrepository >d:\tools\repository</localrepository ><span class=< Span class= "Attribute-value" > "Hljs-tag" style= " margin:0px;padding:0px;font-family: ' Source code pro ', monospace;font-size:12.6px;white-space: Pre;background-color:rgba (128,128,128,.05); " ></span>
Maven uninstall maven because of the installation is only decompression, configuration environment variables, set up the local warehouse, so the uninstall is also very simple 1, delete the extracted MAVEN folder, 2, delete the settings of the environment variable maven_home, remove the "%maven_home" added in Path %\bin; " ; 3, delete the local warehouse; MyEclipse Configure MAVEN1, open windows-->preferences-->myeclipse-->maven4myeclipse-->installations, Click the Add button, select the Maven folder that you installed, and then tick the new MAVEN, and then apply is done in the OK configuration.
Reference: Maven download, install, uninstall, and MyEclipse configuration maven
Maven download, install, uninstall, and MyEclipse configure Maven