The latest version of Eclipse comes with Maven components, but you can use the latest version of Maven, which is installed externally, and describes how to install the configuration.
< a > install Maven
Download maven
After downloading, unzip, find a path to put in, the bin location in the environment variable, new environment variable Maven_home
Path to add Maven's bin to path
Because MAVEN relies on the Java Runtime environment, you need to configure the Java Runtime Environment before using MAVEN. Download and install the JDK, configure the JDK environment variable java_home, or MAVEN will not be able to use
After the configuration is complete, at the Windows command prompt, enter MVN-V test, the configuration is displayed successfully
< two > Configure MAVEN local library address
1. Create a new library folder to hold the dependency package D:\coding\m2\repository for MAVEN downloads
2. Copy the settings.xml file from the Conf folder under the MAVEN installation path to D:\coding\m2\repository
3. Open D:\coding\m2\repository\settings.xml and add <localrepository>d:\coding\m2\repository to the <settings> tab </localrepository>, save.
< three > Specify external maven for eclipse
1. Open Eclipse, select Window->preference->maven->installations, click Add, and select the external installation path. Such as
2. Then choose the User Settings option, select the settings file path for our new library path D:\coding\m2\repository\settings.xml, select and click Update Settings, Eclipse automatically parses the library path specified in it to D:\coding\m2\repository and displays it in the following input box.
3. Select Apply application changes so that the external MAVEN completes the configuration.
MAVEN installation and specifying MAVEN for Eclipse