17.08.2016 Views

Apache Maven 3 Cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4<br />

Based on your teams’ understanding and code conventions, Checkstyle can be configured to<br />

match the same. To configure the Checkstyle plugin, it needs to be added to the build section<br />

of the project POM file. An example is shown as follows:<br />

<br />

...<br />

<br />

<br />

<br />

org.apache.maven.plugins<br />

maven-checkstyle-plugin<br />

2.6<br />

<br />

false<br />

...<br />

<br />

<br />

<br />

<br />

...<br />

<br />

The following screenshot shows a sample Checkstyle report with a list of files, number of<br />

Infos, Warnings, and Errors. You can also see a package level summary of the same:<br />

89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!