Build maven under the Eclipse development environment

Source: Internet
Author: User
Tags aliyun

(i) Development environment

Eclipse Mars2 (4.5.2) + Maven 3.5.0

(ii) configuration steps

1. First of all, the MAVEN environment needs to be configured, maven:http://maven.apache.org/download.cgi

  

After the download is complete, go to the Conf folder in the MAVEN installation directory, modify the Settings.xml file, and add the following under the Mirrors tab:

   配置maven仓库镜像,可以使以后下载jar包时提升速度
   <   mirror><Id>alimaven</id><Name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url><  mirrorof>central   </ mirrorof>  </ < Span style= "color: #008000; Font-size:13px ">MIRROR> 

To configure the local warehouse address, You can save the downloaded jar package to a local

 <localrepository> warehouse address </localRepository>

3. Start Eclipse, open windows-Preferences, MAVEN
Select Add at installations, add Maven path


span>



4. Setting up profiles in Maven---User Settings

Configuration complete

Build maven under the Eclipse development environment

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.