Eclipse builds demo with maven

Source: Internet
Author: User
Tags xmlns

Description: This article uses the Eclipse development tool to build the Hello World program using the MAVEN Project management tool.

Download the latest version of the JDK, download the latest version of Eclipse, the new version integrates Maven, can be used directly, Eclipse needs to configure the JDK environment, default is the JRE environment (use MAVEN to replace the JDK environment, otherwise run MAVEN will error) By the way, modify the local Maven repository (This step can be skipped), by default in the C drive, you need to add the Settings.xml file under the configuration path, the file content only needs to change the warehouse path:

<?xml version= "1.0" encoding= "UTF-8"?> <settings
xmlns= "http://maven.apache.org/SETTINGS/1.0.0"
          Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemalocation= "Http://maven.apache.org/SETTINGS /1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd ">
 <localRepository> D:/tools/repository/maven /repository</localrepository>
 </settings>
Modified after using window-in Eclipse "preferences-" maven-"User settings-" Update settings warehouse configuration maven, you can use MAVEN to create a new project with multiple project types, Select a post-maven to automatically frame the project skeleton; I chose a simple project, the New right-click Project can directly maven command, clean test and so on
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.