Maven core concept
1. pom project object model)
Pom Composition
1. Basic Project Information
2. Build the environment -- dev, test, beta, prod
3. pom relationship-dependent jar package
4. Build settings-plugin plug-in
2. Plug-ins and targets
There are two ways to call the plug-in target:
1. Bind the plug-in target to the lifecycle and execute the lifecycle;
2. directly execute the plug-in target
Common maven plug-ins:
1. maven-archetype-plugins
2. maven-dependency-plugin
3. maven-help-plugin
4. maven-resources-plugin
5. maven-surefire-plugin
6. jetty-maven-plugin
7. maven-enforcer-plugin --
3. maven project lifecycle
Life cycle: resource file processing-compilation-class File Processing-test resource file processing-test-Package
4. maven dependency management
Maven can process the passed dependency and write all associated jar files to the project.
Value range of dependency: <scrope> </scrope>
Compile (compilation scope)
Provided (available range)
Runtime (runtime range)
Test (test scope)
System)
5. maven Repository
6. Project site report (configure resources)