Build a Maven project with eclipse

Source: Internet
Author: User

Installation of the M2eclipse plugin in eclipse

Help>install New Software

Click ADD

Name:m2e

Location:http://download.eclipse.org/technology/m2e/releases

Click OK

It seems that the plug-in have already been installed in this version of Eclipse. If not, just click Next until the last and restart Eclipse.

Configuration:

1. Installing the Maven-bound installation directory

Window>preferences

Click Add and add the installation home of Maven

Click Finish Choose the item

Click Apply and OK

2. Setting up a custom local warehouse

Open settings.xml

Modify the default local warehouse location

< localrepository > F:/m3/repository</localrepository>

Modify the default central warehouse image

<Mirrors>    <!--Mirror | Specifies a repository mirror site to use instead of a given repository. The Repository that | This mirror serves have an ID, that matches, the mirrorof element of this mirror. IDs is used |     For inheritance and direct lookup purposes, and must is unique across the set of mirrors.    | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>huma N Readable Name for this mirror.</name> <url>http://my.repository.com/repo/path</url> </mirro R> -    <Mirror>      <ID>Ibiblio</ID>      <mirrorof>Central</mirrorof>      <name>Human readable Name for this Mirror.</name>      <URL>http://mirrors.ibiblio.org/maven2/</URL>    </Mirror>  </Mirrors>

Save the changes, and also need to copy this settings.xml file to the "f:/m3" directory

Window>preferences

Create a new MAVEN project

Choose Maven-archetype-webapp

If this step is wrong, please refer to http://jingyan.baidu.com/article/63acb44ad96e4b61fcc17ecf.html

Group Id: Basic Package Name

Artifact Id: Project name

Click Finish

Build a Maven project with eclipse

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.