• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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-report</id>
54            <goals>
55              <goal>report</goal>
56            </goals>
57          </execution>
58          <execution>
59            <id>default-check</id>
60            <goals>
61              <goal>check</goal>
62            </goals>
63            <configuration>
64              <rules>
65                <!-- implementation is needed only for Maven 2 -->
66                <rule implementation="org.jacoco.maven.RuleConfiguration">
67                  <element>BUNDLE</element>
68                  <limits>
69                    <!-- implementation is needed only for Maven 2 -->
70                    <limit implementation="org.jacoco.report.check.Limit">
71                      <counter>COMPLEXITY</counter>
72                      <value>COVEREDRATIO</value>
73                      <minimum>0.60</minimum>
74                    </limit>
75                  </limits>
76                </rule>
77              </rules>
78            </configuration>
79          </execution>
80        </executions>
81      </plugin>
82    </plugins>
83  </build>
84
85</project>
86