in src/main/java/org/apache/maven/plugin/docck/CheckPluginDocumentationMojo.java [213:235]
private void checkConfiguredReportPlugins( MavenProject project, DocumentationReporter reporter )
{
List<String> expectedPlugins = getRequiredPlugins();
@SuppressWarnings( "unchecked" )
List<ReportPlugin> reportPlugins = project.getReportPlugins();
if ( reportPlugins != null && reportPlugins.size() > 0 )
{
for ( ReportPlugin plugin : reportPlugins )
{
expectedPlugins.remove( plugin.getArtifactId() );
}
}
else
{
reporter.error( "pom.xml has no report plugins configured." );
}
for ( String expectedPlugin : expectedPlugins )
{
reporter.error( "pom.xml is missing the report plugin: " + expectedPlugin + "." );
}
}