Skip to content

Maven Reporting Plugin

Eric Pugh edited this page Feb 14, 2020 · 2 revisions

The Maven Plugin produces the evaluation result as a JSON file, under the target/rre directory. Another component, which is actually a Maven Reporting Plugin, takes this data in input and produces different outputs.
The reporting plugin must be configured as in the following example:

<plugin>
    <groupId>io.sease</groupId>
    <artifactId>rre-maven-report-plugin</artifactId>
    <version>1.0</version>
    <configuration>
        <formats>
            <param>spreadsheet</param>
            <param>rre-server</param>
        </formats>
    </configuration>
    <executions>
        <execution>
            <phase>post-integration-test</phase>
            <goals>
                <goal>report</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Note that, although it's a Maven Reporting Plugin, it has to be configured under the build/plugins section, in the pom.xml.

The sample configuration above uses two outputs (the two available at the moment). The first is a spreadsheet which produces a file that can be read with LibreOffice Calc or Microsoft Excel. The second format sends the evaluation data to a running RRE Server instance. If the server is not running and up, then the plugin will report a connection error.

The plugin can be executed within the build cycle or explicitly using the following command:

> mvn rre-report:report

The spreadsheet will be created under the target/site folder.