Book Image

Apache Maven Cookbook

Book Image

Apache Maven Cookbook

Overview of this book

Table of Contents (18 chapters)
Apache Maven Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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>
            <version>2.13</version>
            <reportSets>
              <reportSet>
                <id>aggregate</id>
                <inherited...