Most yards are familiar with eclipse, with Eclipse development projects, MAVEN is a very useful Java tool to solve the dependent library, can integrate with eclipse, easy to manage the Web,java project and so on, but many beginners do not know how to configure Maven; I often use the MAVEN framework, the following describes how to configure Maven in Eclipse, the author personally published Oh.
Tools/Materials
- Eclipse-standard-luna-sr2-win32-x86_64
- apache-maven-3.3.3 is installed.
Method/Step
- 1
First step: Configure the MAVEN Library
1. Create a new folder locally to store the jar libraries that Maven needs. As shown in the following:
2. Modify MAVEN configuration file Settings.xml,d:\apache-maven-3.3.3\conf\settings.xml. Point the configuration file to the folder you just built. As shown in the following:
- 2
Step two: Eclipse configuration maven
1, open the Cclipse, turn windows-->prefrences, click on the right side of Maven triangle symbol to expand the Maven configuration interface, the interface as shown:
- 3
2. Then click on the installations option below MAVEN and the following interface appears, click the Add button as shown:
- 4
3, then please select your Maven installation path, here my Maven installation directory for D:\apache-maven-3.3.3, select your Maven installation directory, and click OK, then click Apply, click OK, the interface as shown:
- 5
4. Then click on the user Settings option under MAVEN and the following interface will appear, please click on the second browse. button, select the Maven profile settings.xml that you configured in the first step. Then click on the Update Settings button below, then click on the Apply button below, click OK to complete. As shown in the following sequence:
- 6
Step three: Test if MAVEN is installed successfully
1. Open Eclipse and create a MAVEN project. Click File-->new-->maven Project, select Create a simple project (skip archetype selection), then click the Next button. As shown in the following:
- 7
2, then fill in the group ID and artifact ID, version default, packaging default to Jar,name,description optional, the other is not filled, then click Finish button to complete. As shown in the following:
END
Precautions
- Please make sure maven and JDK are properly configured.
- If this article is helpful to you or you like, please click to vote or add attention, thank you!
How Maven is configured in eclipse