Maven和emma插件

时间:2012-09-01 08:47:45

标签: maven osgi emma

如果某些工具包拼写错误或者没有生成target / coverage / coverage.xml文件报告,如何配置maven build失败?

1 个答案:

答案 0 :(得分:0)

我没有检查,试试:

<build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-verifier-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <verificationFile>target/coverage/coverage.xml</verificationFile>
        </configuration>
        <executions>
          <execution>
            <id>main</id>
            <phase>package</phase>
            <goals>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>