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>@junit.version@</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-report</id> 55 <goals> 56 <goal>report</goal> 57 </goals> 58 </execution> 59 <execution> 60 <id>default-check</id> 61 <goals> 62 <goal>check</goal> 63 </goals> 64 <configuration> 65 <rules> 66 <rule> 67 <element>BUNDLE</element> 68 <limits> 69 <limit> 70 <counter>COMPLEXITY</counter> 71 <value>COVEREDRATIO</value> 72 <minimum>0.60</minimum> 73 </limit> 74 </limits> 75 </rule> 76 </rules> 77 </configuration> 78 </execution> 79 </executions> 80 </plugin> 81 </plugins> 82 </build> 83 84</project> 85