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...

  1. Open a multi-module project (two-multi-module) with two modules, one and two.
  2. Add the following command to the reporting section of the parent pom for checkstyle:
     <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> ...

Get Apache Maven Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.