In which dependcies the plugin in maven is placed

Source: Internet
Author: User

If you use MAVEN to manage your project, you'll find that you're relying on a lot of plugin, and that raises a question.

There may be two <dependcies> this tag in a project,

As follows

<dependcies>

A

</dependcies>

<build>

<dependcies>

B

</dependcies>

</build>

What is the difference between these two dependcies?

I found the answer on MAVEN's official web site:

Https://maven.apache.org/pom.html

On top I used a and B to represent two positions of dependcies,

Where A's role is to specify Who,what,where (what plug-in to do what)

The role of B is to specify when, how (configuration enable, and how the plug-in works, that is, the plug-in in build is to work with some other plug-in, or auxiliary build)

In which dependcies the plugin in maven is placed

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.