Is there a way for a Maven project to inherit report configurations from a pom dependency?

后端 未结 2 578
天命终不由人
天命终不由人 2021-01-19 21:13

I know that it\'s possible to configure the section in a parent POM and have it apply to the sub-modules in a multi-module project. However, I\'d like to have a separate P

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 22:07

    With Maven 3 the reporting element in the pom is gone and replaced by a configuration element for the site plugin. You can then use the usual pluginManagement to define a configuration that is used everywhere. I would suggest to upgrade to Maven 3 in general anyway and this gives you another good reason..

    Update: The reporting element has been brought back and works again with latest versions of the site plugin.

提交回复
热议问题