Details
Description
It's a Checkstyle/PMD-like, distributed under the terms of the LGPL license.
More info on http://mojo.codehaus.org/findbugs-maven-plugin
It's a Checkstyle/PMD-like, distributed under the terms of the LGPL license.
More info on http://mojo.codehaus.org/findbugs-maven-plugin
Findbugs analyses bytecode but not java sources. So if findbugs rules are activated, projects with sonar light mode should set the sonar.classesDir parameter and be built before launching sonar.
Example of pom.xml if sources are compiled into build/classes :
<build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <failOnError>false</failOnError> <excludes><exclude>**/*</exclude></excludes> </configuration> </plugin> </plugins> </build> <properties> <sonar.light>true</sonar.light> <sonar.classesDir>build/classes</sonar.classesDir> </properties>There are also two new parameters on compiler plugin (failOnError and excludes).
<build> <sourceDirectory>src</sourceDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> <failOnError>false</failOnError> <excludes><exclude>**/*</exclude></excludes> </configuration> </plugin> </plugins> </build> <properties> <sonar.light>true</sonar.light> <sonar.classesDir>build/classes</sonar.classesDir> </properties>