Vivek
Vivek

Reputation: 13278

Does child pom inherit plugins from parent pom

In a multi module maven project, does a child pom inherits plugins defined in parent pom?

Maven documentation around the plugin inheritance is a bit confusing to me. According to the documentation

If your POM declares a parent, it inherits plugin configuration from either the build/plugins or pluginManagement sections of the parent.

So I'm assuming only the configuration will be inherited in case if the child has the same plugin defined under <build><plugins> section. If child does not have the plugin then it's not inherited from the parent.

Can someone please confirm if this is the correct understanding, or I'm missing anything here.

Upvotes: 3

Views: 1979

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35843

You inherit everything, so your understanding is incorrect.

Upvotes: 2

Related Questions