Using the Report

To use this report simply register the report plugin with your POM.

Default Configuration

<reporting>
  <plugins>
    <plugin>
      <groupId>de.smartics.exceptions</groupId>
      <artifactId>maven-exceptioncodes-plugin</artifactId>
      <version>0.6.2</version>
    </plugin>
  </plugins>
</reporting>
        

Using a different Report Generator

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

Adding additional Source Directories

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>