I am currently using the below configuration to ignore pmd violations.
pmdMain {
ignoreFailures = true
}
Is there a way to define maxAllowedViolations . So that build fails only if the violation crosses this limit.
Any pointers in this direction will be greatly appreciated.