(1) Eclipse installs the maven plugin

eclipse3.7 install maven plugin
1. Create a new directory myplugins in the eclipse directory to place new plug-ins;
2. Unzip the plugin eclipse-maven3-plugin.7z and copy it directly to the myplugins directory [plugin download address: http://eclipse.org/m2e/download/]
[myplugins\maven\eclipse, it must be ensured that there is an eclipse folder in the decompressed file directory, and two directories of features and plugins are placed under it]
3. Create a maven.link file in the dropins directory under the eclipse root directory. The content of the file:
path=E:/technology-hqh/soft/eclipse3.7/myplugins/maven
Note: The path separator is "/"
4. Restart eclipse, Oak!


After the maven plugin is successfully installed, create a local repository [do not use the default local repository, and place all dependencies in the c:/User/xxx/.m2/repository directory by default]
Create a new repository directory in the appropriate directory, and then create The maven directory, under which a repo folder is established to store all jars [repository/maven/repo]

Under the newly created repository/maven, copy the settings.xml in the maven/conf directory, and set the localRepository property: <localRepository >E:/technology-hqh/repository/maven/repo</localRepository>

Next, configure the maven plugin in eclipse
1.window-preference-maven-installations:Add Add local maven instead of IDE default.
2.window-preference-maven-User Setting:brows Select the new settings.xml, the purpose of this is: eclipse will use the configuration in the specified settings.xml to manage the relevant execution functions of maven, and maven will no longer be used The settings.xml configuration in the conf directory in the installation directory. The file is copied from the conf directory in the maven installation directory, and the localRepository configuration is modified.

At this point, the maven plugin installation and basic configuration are complete!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326893758&siteId=291194637