Since it is customary to encode using eclipse as usual, you need to install Eclipse MAVEN's plug-in, and the installation steps are as follows:
First, installation
Select menu: Help, install New software installs the Maven plugin, the required online installation address is as follows
M2eclipse Core Update site:http://m2eclipse.sonatype.org/sites/m2e
To find the Maven plugin you want to install, click Next to install it, as shown in.
Second, the configuration
After the installation is complete, restart Eclipse, go to menu:Window---Preferences, go to Eclipse 's Settings page, You can see the new Maven, as shown in
Select menu:installations, maven-Preferences, Window, modify the directory to maven The local installation root directory (that is, the previously configured mvn_home system variable points to the path), and the MAVEN global settings.xml is automatically loaded when the configuration is complete configuration file, as shown in
Go to menu: Preferences, maven---User Settings, Windows, select maven local warehouse settings.xml /c3> configuration file, select the local warehouse path to update automatically, as shown in
Third, Maven extension package
Similar to the MAVEN plugin installation, enter the following online installation address to install:
M2eclipse Extras Update Site:http://m2eclipse.sonatype.org/sites/m2e-extras
Iv. New MAVEN Project
Create a new maven project path, select Java package Scene view, open the New Project Wizard page (shortcut:Ctrl + N), search Maven, as shown in:
Select Maven Projectand create a maven project from the wizard .
At this point, maven-002-eclipse plug-in installation and the successful completion of the example, I hope this article can give you a reference to a beginner Maven.
Finally, very grateful to the pro-stop, I hope this article can be pro helpful. Warmly welcome the kiss to discuss together and progress together. Thank you so much! ^_^
Maven-002-eclipse plug-in installation and examples