Reporting for multi-module projects
When we talk about generating a site report for a multi-module project, we refer to generating this for each module of the project and the parent project. In the case of the site report for a multi-module project, a couple of factors need to be taken into account. The first one is to test if the links between the parent and the modules work correctly. The other is to check if certain site reports can be aggregated instead of being reported individually for each module.
How to do it...
- Open a multi-module project (
two-multi-module
) with two modules, one and two. - Add the following command to the
reporting
section of the parent pom forcheckstyle
:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.13</version> <reportSets> <reportSet> <id>aggregate</id> <inherited...