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

只谈情不闲聊 提交于 2019-12-01 18:42:57

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.

hoijui

This supposedly works since Maven 3.5, which was released in spring of 2017; see the related issue.

Configuration defined in plugins under <build><pluginManagement> will be used under <reporting> too now.

Refer to the documentation for further info, if you don't know how plugin-management works in Maven.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!