• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3   Copyright (c) 2009, 2019 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                <rule>
78                  <element>BUNDLE</element>
79                  <limits>
80                    <limit>
81                      <counter>COMPLEXITY</counter>
82                      <value>COVEREDRATIO</value>
83                      <minimum>0.60</minimum>
84                    </limit>
85                  </limits>
86                </rule>
87              </rules>
88            </configuration>
89          </execution>
90        </executions>
91      </plugin>
92      <plugin>
93        <groupId>org.apache.maven.plugins</groupId>
94        <artifactId>maven-surefire-plugin</artifactId>
95        <version>2.16</version>
96      </plugin>
97      <plugin>
98        <groupId>org.apache.maven.plugins</groupId>
99        <artifactId>maven-failsafe-plugin</artifactId>
100        <version>2.16</version>
101        <executions>
102          <execution>
103            <id>default-integration-test</id>
104            <goals>
105              <goal>integration-test</goal>
106            </goals>
107          </execution>
108        </executions>
109      </plugin>
110    </plugins>
111  </build>
112</project>
113