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