如果某些要检测的捆绑包拼写错误或未生成 target/coverage/coverage.xml 文件报告,如何将 maven 构建配置为失败?
问问题
90 次
1 回答
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>
于 2012-09-11T20:46:12.410 回答