Abstract classes to manage report generation, which can be run both:
A full working sample is included in maven-reporting-impl ITs, which are part of the component source tree: see src/it/setup-reporting-plugin.
When used as a direct standalone goal invocation, Doxia implementation used is the version used during plugin compilation.
When used as report during site generation, maven-site-plugin provides Doxia API implementation to the plugin, overriding normal plugin dependency: see DefaultMavenReportExecutor in maven-reporting-exec.
From maven-reporting-impl 2.1 to maven-reporting-impl 2.3, Doxia version used ranges from 1.1 to 1.4. When creating a reporting plugin using one of these maven-reporting-impl versions, take care to use corresponding doxia-sink-api:
maven-reporting-impl 2.4.x use Doxia 1.6.
When upgrading a reporting plugin from an old version of maven-reporting-impl to version 2.3 or more, a lot of copy/pasted code can be removed by upgrading the plugin to plugin-tools with Java 5 annotations: see MSHARED-347 for more details.