emma maven plugin中如何选择对某些文件不做coverage

Build:


<build>
<plugins>

<!-- emma configuration -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<inherited>true</inherited>
<configuration>
<filters>
<filter>+com.nhncorp.ntaf.*</filter>
<filter>-fit.*</filter>
<filter>-fitlibrary.*</filter>
<filter>-fitnesse.*</filter>
<filter>-eq.*</filter>
<filter>-org.*</filter>
<filter>-util.*</filter>
</filters>
</configuration>
<executions>
<execution>
<id>instrument</id>
<phase>pre-site</phase>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

其中+表示include, -表示exclude.

Report:

<reporting>
<plugins>
<!-- emma report configuration -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<inherited>true</inherited>
</plugin>

</plugins>
</reporting>

你可能感兴趣的:(plugin)