Maven core concept

Source: Internet
Author: User

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)

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.