0

当父级的 pom at (or ) 部分中存在依赖项时,是否有必要在子级的 pom.xml 中声明依赖项?他们是遗传的吗?

4

1 回答 1

2

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.

于 2012-08-23T10:37:53.310 回答