<plugin> <groupId> org.sonatype.maven.plugin </ groupId> <artifactId> emma-maven-plugin </ artifactId> <version> 1.2 </ version> <configuration> <filters> <filter> + org. * </ filter> <filter> -org.some.package. * </ filter> </ filters> </ configuration> <executions> <execution> <phase> process-classes </ phase> <goals> <goal> instrument </ goal> </ goals> </ execution> </ executions> </ plugin>
<plugin> <groupId> org.apache.maven.plugins </ groupId> <artifactId> maven-surefire-plugin </ artifactId> <configuration> <classesDirectory> $ {project.build.directory} / generated-classes / emma / classes </ classesDirectory> </ configuration> </ plugin>
<plugin> <groupId> org.sonatype.maven.plugin </ groupId> <artifactId> emma4it-maven-plugin </ artifactId> <version> 1.3 </ version> <executions> <execution> <id> report </ id> <phase> test </ phase> <goals> <goal> report </ goal> </ goals> <configuration> <sourceSets> <sourceSet> <directory> $ {project.build.sourceDirectory} </ directory> </ sourceSet> </ sourceSets> </ configuration> </ execution> </ executions> </ plugin>
Source: https://habr.com/ru/post/105046/
All Articles