By Barnaby Golden, 10 August, 2011 Use Maven to fail builds on code quality I'm a great believer in getting quality in as early as possible in the development cycle. Checks that run automatically in an IDE are best (for example the Checkstyle/PMD plug-ins in Eclipse). But these have one drawback: they are not enforced.