93

While configuring my pom.xml, I had to configure a plugin. What I found out is that the <plugin> tag may be inserted inside either <plugins> or <pluginManagement> elements. I am confused!

What is the difference between <plugins> and <pluginManagement>?

Paulo Merson
  • 13,270
  • 8
  • 79
  • 72
CALTyang
  • 1,128
  • 1
  • 8
  • 13
  • 5
    You have it well explained [here][1] [1]: http://stackoverflow.com/questions/10483180/maven-what-is-pluginmanagement – Master Slave Nov 04 '14 at 14:01

1 Answers1

80

From Maven documentation:

pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children. The children have every right to override pluginManagement definitions.

You can look at a better answer

Community
  • 1
  • 1
Sergii Getman
  • 3,845
  • 5
  • 34
  • 50