My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Cobertura

  • Configuring Cobertura Exclusion to Work with Maven Site

    PROBLEM The Cobertura Maven Plugin doesn’t respect the exclusion configuration. For example, if you have the following pom.xml, the exclusion configuration does absolutely nothing when you execute mvn site. SOLUTION To fix this, you will need to define the Cobertura Maven Plugin under both <build> and <reporting>.