Skip to content

Instantly share code, notes, and snippets.

@Rocketeer007
Last active March 12, 2017 13:51
Show Gist options
  • Save Rocketeer007/8b91f17c663bcd7965c4c5bc243dae04 to your computer and use it in GitHub Desktop.
Save Rocketeer007/8b91f17c663bcd7965c4c5bc243dae04 to your computer and use it in GitHub Desktop.
Surefire, Failsafe and Jacoco reports for sub-modules with Code Cross-Reference
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
<reportSets>
<reportSet>
<id>unit-tests</id>
<reports>
<report>report</report>
</reports>
</reportSet>
<reportSet>
<id>integration-tests</id>
<reports>
<report>failsafe-report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<reportSets>
<reportSet>
<id>jacoco-report</id>
<reports>
<report>report</report>
<report>report-integration</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</reporting>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment