• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3   Copyright (c) 2009, 2017 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            <phase>prepare-package</phase>
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                <!-- implementation is needed only for Maven 2 -->
67                <rule implementation="org.jacoco.maven.RuleConfiguration">
68                  <element>BUNDLE</element>
69                  <limits>
70                    <!-- implementation is needed only for Maven 2 -->
71                    <limit implementation="org.jacoco.report.check.Limit">
72                      <counter>COMPLEXITY</counter>
73                      <value>COVEREDRATIO</value>
74                      <minimum>0.60</minimum>
75                    </limit>
76                  </limits>
77                </rule>
78              </rules>
79            </configuration>
80          </execution>
81        </executions>
82      </plugin>
83    </plugins>
84  </build>
85
86</project>
87