With the help of this post, I am trying to collate the best practices to Centralize the Maven Plugins and Dependencies in one pom ? Although few of the questions are bit obivious, I am still posting it as an open question for the sake of curating all the questions to conclude an ideal super pom for a corporate use. I welcome hearing from the Maven gurus.

  1. Will <pluginManagement> from parent pom be inherited into child pom ?

  2. Will <dependencyManagement> from parent pom be inherited into child pom ?

  3. Will <properties> from parent pom be inherited into child pom ?

  4. Will BOM pom import bring in dependencies from its <dependencyManagement> section ?

  5. Will BOM pom import bring in plugins from its <pluginManagement> section ?

  6. Will BOM pom import bring in properties from its <properties> section ?

1 Answers

0
JF Meier On

For question 1 to 4, the answer is yes.

For 5 and 6, I am not sure, but I guess the answer is no.