Maven-002-eclipse plug-in installation and examples

Source: Internet
Author: User
Tags sonatype

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.