Total Pageviews

Thursday, 12 September 2013

Maven with CPD, CheckStyle, FindBug, PMD


Integration of CPD, CheckStyle, FindBug, PMD with Maven

We can integrate all these code checking tools within Maven. We just need to add all plugins with <reporting> tag in pom.xml.

Sample code is here:

 


We need to hit target "mvn site" for run these tools by command line.

All reports will be generated at location "<project folder>\target\site" folder.

FindBugs require compilation of code so we have to run target "mvn clean compile site".