该插件通常会生成 3 个报告:changelog、dev-activity和file-activity。默认情况下会生成所有三个报告。可以配置插件以便只生成其中的一些报告。这是使用<reportSets>完成的。
以下配置将仅生成更改日志和文件活动报告。
注意: reportSets元素不是配置元素的一部分。相反,配置位于reportSet元素中。
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.3</version>
<reportSets>
<reportSet>
<id>dual-report</id>
<configuration>
<type>range</type>
<range>30</range>
</configuration>
<reports>
<report>changelog</report>
<report>file-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
...
</project>