1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 4 This program and the accompanying materials are made available under 5 the terms of the Eclipse Public License 2.0 which is available at 6 http://www.eclipse.org/legal/epl-2.0 7 8 SPDX-License-Identifier: EPL-2.0 9 10 Contributors: 11 Marc R. Hoffmann - initial API and implementation 12 Kyle Lieber - implementation of CheckMojo 13--> 14<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 16 <modelVersion>4.0.0</modelVersion> 17 18 <groupId>org.jacoco</groupId> 19 <artifactId>org.jacoco.examples.maven</artifactId> 20 <version>@project.version@</version> 21 <packaging>jar</packaging> 22 23 <name>JaCoCo Maven plug-in example</name> 24 <url>http://www.jacoco.org/jacoco</url> 25 26 <dependencies> 27 <dependency> 28 <groupId>junit</groupId> 29 <artifactId>junit</artifactId> 30 <version>4.10</version> 31 <scope>test</scope> 32 </dependency> 33 </dependencies> 34 35 <properties> 36 <maven.compiler.source>1.5</maven.compiler.source> 37 <maven.compiler.target>1.5</maven.compiler.target> 38 </properties> 39 40 <build> 41 <plugins> 42 <plugin> 43 <groupId>org.jacoco</groupId> 44 <artifactId>jacoco-maven-plugin</artifactId> 45 <version>@project.version@</version> 46 <executions> 47 <execution> 48 <id>default-prepare-agent</id> 49 <goals> 50 <goal>prepare-agent</goal> 51 </goals> 52 </execution> 53 <execution> 54 <id>default-prepare-agent-integration</id> 55 <goals> 56 <goal>prepare-agent-integration</goal> 57 </goals> 58 </execution> 59 <execution> 60 <id>default-report</id> 61 <goals> 62 <goal>report</goal> 63 </goals> 64 </execution> 65 <execution> 66 <id>default-report-integration</id> 67 <goals> 68 <goal>report-integration</goal> 69 </goals> 70 </execution> 71 <execution> 72 <id>default-check</id> 73 <goals> 74 <goal>check</goal> 75 </goals> 76 <configuration> 77 <rules> 78 <rule> 79 <element>BUNDLE</element> 80 <limits> 81 <limit> 82 <counter>COMPLEXITY</counter> 83 <value>COVEREDRATIO</value> 84 <minimum>0.60</minimum> 85 </limit> 86 </limits> 87 </rule> 88 </rules> 89 </configuration> 90 </execution> 91 </executions> 92 </plugin> 93 <plugin> 94 <groupId>org.apache.maven.plugins</groupId> 95 <artifactId>maven-surefire-plugin</artifactId> 96 <version>2.16</version> 97 </plugin> 98 <plugin> 99 <groupId>org.apache.maven.plugins</groupId> 100 <artifactId>maven-failsafe-plugin</artifactId> 101 <version>2.16</version> 102 <executions> 103 <execution> 104 <id>default-integration-test</id> 105 <goals> 106 <goal>integration-test</goal> 107 </goals> 108 </execution> 109 </executions> 110 </plugin> 111 </plugins> 112 </build> 113</project> 114