Setting
edit project pom.xml file
insert reporting tag to pom.xml file
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.2</version>
<configuration>
<configLocation>/env/hudson/jobs/cafe_main/workspace/cafe_main/checkstyle.xml</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>${clover.version}</version>
<configuration>
<licenseLocation>/env/clover.2.x.license</licenseLocation>
<generateHtml>false</generateHtml>
<generateXml>true</generateXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.0.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>10</minimumTokens>
<includeTests>false</includeTests>
<targetJdk>1.6</targetJdk>
<targetJdk>${maven.compiler.target}</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<configuration>
<xmlOutput>true</xmlOutput>
<xmlOutputDirectory>
${project.build.directory}/findbugs
</xmlOutputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<configuration>
<tags>
<tag>TODO</tag>
<tag>FIXME</tag>
<tag>@todo</tag>
<tag>@deprecated</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<formats>
<format>xml</format>
</formats>
</configuration>
</plugin>
</plugins>
</reporting>
insert to maven goals
clean:clean
process-classes
war:inplace
clover2:instrument
clover2:aggregate
clover2:clover
-Dmaven.clover.licenseLocation=/env/clover.2.x.license
cobertura:cobertura
findbugs:findbugs
pmd:pmd
checkstyle:checkstyle
-Dmaven.test.failure.ignore=true
-Dmaven.revision.check=false