1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (c) 2009, 2018 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 Marc R. Hoffmann - 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 <groupId>org.jacoco</groupId> 18 <artifactId>org.jacoco.examples.maven</artifactId> 19 <version>@project.version@</version> 20 <packaging>jar</packaging> 21 22 <name>JaCoCo Maven plug-in example</name> 23 <url>http://www.jacoco.org/jacoco</url> 24 25 <dependencies> 26 <dependency> 27 <groupId>junit</groupId> 28 <artifactId>junit</artifactId> 29 <version>4.10</version> 30 <scope>test</scope> 31 </dependency> 32 </dependencies> 33 34 <properties> 35 <maven.compiler.source>1.5</maven.compiler.source> 36 <maven.compiler.target>1.5</maven.compiler.target> 37 </properties> 38 39 <build> 40 <plugins> 41 <plugin> 42 <groupId>org.jacoco</groupId> 43 <artifactId>jacoco-maven-plugin</artifactId> 44 <version>@project.version@</version> 45 <executions> 46 <execution> 47 <id>default-prepare-agent</id> 48 <goals> 49 <goal>prepare-agent</goal> 50 </goals> 51 </execution> 52 <execution> 53 <id>default-prepare-agent-integration</id> 54 <goals> 55 <goal>prepare-agent-integration</goal> 56 </goals> 57 </execution> 58 <execution> 59 <id>default-report</id> 60 <goals> 61 <goal>report</goal> 62 </goals> 63 </execution> 64 <execution> 65 <id>default-report-integration</id> 66 <goals> 67 <goal>report-integration</goal> 68 </goals> 69 </execution> 70 <execution> 71 <id>default-check</id> 72 <goals> 73 <goal>check</goal> 74 </goals> 75 <configuration> 76 <rules> 77 <!-- implementation is needed only for Maven 2 --> 78 <rule implementation="org.jacoco.maven.RuleConfiguration"> 79 <element>BUNDLE</element> 80 <limits> 81 <!-- implementation is needed only for Maven 2 --> 82 <limit implementation="org.jacoco.report.check.Limit"> 83 <counter>COMPLEXITY</counter> 84 <value>COVEREDRATIO</value> 85 <minimum>0.60</minimum> 86 </limit> 87 </limits> 88 </rule> 89 </rules> 90 </configuration> 91 </execution> 92 </executions> 93 </plugin> 94 <plugin> 95 <groupId>org.apache.maven.plugins</groupId> 96 <artifactId>maven-surefire-plugin</artifactId> 97 <version>2.16</version> 98 </plugin> 99 <plugin> 100 <groupId>org.apache.maven.plugins</groupId> 101 <artifactId>maven-failsafe-plugin</artifactId> 102 <version>2.16</version> 103 <executions> 104 <execution> 105 <id>default-integration-test</id> 106 <goals> 107 <goal>integration-test</goal> 108 </goals> 109 </execution> 110 </executions> 111 </plugin> 112 </plugins> 113 </build> 114</project> 115