Configuring Maven in Eclipse

Source: Internet
Author: User
Maven Download Address: http://maven.apache.org/download.cgi
Both the default STS and MyEclipse have the support of MAVEN, and if you are using eclipse to develop the MAVEN project, you need to first install M2eclipse, the Eclipse plug-in. one, the installation of Plug-insHelp-install New Software ... In the Install box, select Add ... NAME:M2E location:http://m2eclipse.sonatype.org/sites/m2e (if the address above is invalid, use the address: http://download.eclipse.org/technology /m2e/releases) (If the above method is invalid, Help-eclipse marketplace ..., enter in Find: M2E, click the Go button, select the desired plugin) Select multiple selection box-next-next-Agree agreement next is download from the website Install in the last step, the following two items are selected, or you will be the error, and terminate the installation
Ii. the configuration of Maven
to configure the local repository for maven:The default local warehouse path for MAVEN is: ~/.m2/repository can modify the directory you set for yourself: 1. Enter MAVEN installation directory 2. Modify ... \apache-maven-3.0.5\conf\settings.xml files, adding <settings ....> <localRepository>D:\maven\repos</localRepository></settings>
configuring Maven in EclipseAfter the installation is successful, the MAVEN option is added, adding the downloaded maven in the installations
To configure the default warehouse for this computer in user settings resolve Eclipse startup warning issues after the installation is successful, starting Eclipse will report the following error: Solution: 1. Configure the JDK path (not JRE) 2 in Windows-preferences. Modify the Eclipse.ini file in the Eclise folder add:-vm D:\PROGRA~1\JAVA\JDK1.6.0_14\JRE\BIN\JAVAW The second line represents the JDK path for the native installation
Reference Document: Http://www.cnblogs.com/freeliver54/archive/2011/09/07/2169527.html
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.