Add note about explicit selection of non-aggregate reports (#420)
diff --git a/org.jacoco.doc/docroot/doc/maven.html b/org.jacoco.doc/docroot/doc/maven.html
index 52fee00..af7d126 100644
--- a/org.jacoco.doc/docroot/doc/maven.html
+++ b/org.jacoco.doc/docroot/doc/maven.html
@@ -103,6 +103,33 @@
mvn help:describe -Dplugin=org.jacoco:jacoco-maven-plugin -Ddetail
</pre>
+<p>
+ Usage of plugin together with <tt>maven-site-plugin</tt> without
+ <a href="https://maven.apache.org/plugins/maven-site-plugin/examples/configuring-reports.html#Selecting_Reports_from_a_Plugin:_Configuring_Report_Sets">explicit selection of reports</a>
+ might lead to generation of redundant aggregate reports.
+ Specify <tt>reportSets</tt> explicitly to avoid this:
+</p>
+<pre class="source lang-xml linenums">
+<project>
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <!-- select non-aggregate reports -->
+ <report>report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
+</pre>
+
<h2>Goals</h2>
<p>