To use this report simply register the report plugin with your POM.
<reporting> <plugins> <plugin> <groupId>de.smartics.exceptions</groupId> <artifactId>maven-exceptioncodes-plugin</artifactId> <version>0.6.2</version> </plugin> </plugins> </reporting>
<reporting> <plugins> <plugin> <groupId>de.smartics.exceptions</groupId> <artifactId>maven-exceptioncodes-plugin</artifactId> <version>0.6.2</version> <configuration> <reportGenerator> de.smartics.maven.exceptions.report.CodeSortedSinkReportGenerator </reportGenerator> </configuration> </plugin> </plugins> </reporting>
The plugin tries to find sources for all jars on the class path using the default naming convention (same directory with suffix -sources.jar or -sources.zip). But you may specify any additional source folders that are prepended to the source path using the following example.
<reporting> <plugins> <plugin> <groupId>de.smartics.exceptions</groupId> <artifactId>maven-exceptioncodes-plugin</artifactId> <version>0.6.2</version> <configuration> <additionalSourcePath> \${basedir}/../xxx-project/src/main/java,\${basedir}/../yyy-project/src/main/java </additionalSourcePath> </configuration> </plugin> </plugins> </reporting>