1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright (c) 2009, 2015 Mountainminds GmbH & Co. KG and Contributors 4 All rights reserved. This program and the accompanying materials 5 are made available under the terms of the Eclipse Public License v1.0 6 which accompanies this distribution, and is available at 7 http://www.eclipse.org/legal/epl-v10.html 8 9 Contributors: 10 Evgeny Mandrikov - initial API and implementation 11 Kyle Lieber - implementation of CheckMojo 12 --> 13 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 14 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 15 <modelVersion>4.0.0</modelVersion> 16 17 <parent> 18 <groupId>jacoco</groupId> 19 <artifactId>setup-parent</artifactId> 20 <version>1.0-SNAPSHOT</version> 21 </parent> 22 23 <artifactId>it-check-fails-halt</artifactId> 24 25 <build> 26 <plugins> 27 <plugin> 28 <groupId>@project.groupId@</groupId> 29 <artifactId>jacoco-maven-plugin</artifactId> 30 <executions> 31 <execution> 32 <goals> 33 <goal>prepare-agent</goal> 34 </goals> 35 </execution> 36 <execution> 37 <id>check</id> 38 <goals> 39 <goal>check</goal> 40 </goals> 41 <configuration> 42 <rules> 43 <!-- implementation is needed only for Maven 2 --> 44 <rule implementation="org.jacoco.maven.RuleConfiguration"> 45 <element>CLASS</element> 46 <includes> 47 <include>Example</include> 48 </includes> 49 <limits> 50 <!-- implementation is needed only for Maven 2 --> 51 <limit implementation="org.jacoco.report.check.Limit"> 52 <counter>METHOD</counter> 53 <value>MISSEDCOUNT</value> 54 <maximum>0</maximum> 55 </limit> 56 </limits> 57 </rule> 58 </rules> 59 </configuration> 60 </execution> 61 </executions> 62 </plugin> 63 </plugins> 64 </build> 65 </project> 66