Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created February 22, 2012 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/1885330 to your computer and use it in GitHub Desktop.
Save kdabir/1885330 to your computer and use it in GitHub Desktop.
Configuring Cobertura, PMD & Findbugs in Maven
...
<reporting>
<plugins>
<!-- checks the test coverage -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>${cobertura.version}</version>
</plugin>
<!-- checks the code statically for any issues -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd.version}</version>
<configuration>
<linkXref>true</linkXref>
<targetJdk>1.6</targetJdk>
</configuration>
</plugin>
<!-- checks the compiled bytecode for any issues -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>${findbug.version}</version>
</plugin>
</plugins>
...
</reporting>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment