1. Create a MAVEN project in eclipse
>> configuring Maven in Eclipse:
Configure MAVEN version: Eclips comes with a maven that doesn't normally have this, and chooses the MAVEN that we installed
Configure the Local warehouse: set Settings.xml
>> after you have written pom.xml dependencies in Eclipse, you need to select the project name and then the right-click menu Maven->update Project
>> Select Pom.xml in Eclipse, right-click on Run As->build ...
2. The relationship between Maven life cycle and construction
Order of commands in the life cycle: a b c D E
When we execute the C command, the actual execution is a B C
For example, when we execute the package command in Eclipse, the three commands for compile, test, resources are executed first, and then the Package command is executed.
3 . Phase of life cycle: 3 stages
Clean lifecycle: Cleanup
Pre-clean, clean, Post-clean and other commands
Default lifecycle: Defaults (common, useful)
Compile, install, package, test, test-compile and other commands
Site Lifecycle: Sites
Pre-site, site, Post-site, Site-deploy and other commands
Maven, life cycle in "maven" eclipse