johnny-b-goode
johnny-b-goode

Reputation: 3893

Necessity of declaring dependencies in child java module pom

Is it necessary to declare dependencies at child's pom.xml when they are present in parent's pom at (or ) section? Are they inherited?

Upvotes: 0

Views: 121

Answers (1)

TRex
TRex

Reputation: 141

The fallowing elements from the parent POM are inherited by the children pom's:

  • Dependencies
  • Plugin executions
  • Plugin configurations
  • Other misc. elements (e.g SCM settings, developers, reports)

For more info see: Pom Inheritance

So in your case you don't need to declare again the dependencies in the child pom.

Upvotes: 2

Related Questions