• 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      Evgeny Mandrikov - initial API and implementation
11-->
12<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14  <modelVersion>4.0.0</modelVersion>
15
16  <parent>
17    <groupId>jacoco</groupId>
18    <artifactId>setup-parent</artifactId>
19    <version>1.0-SNAPSHOT</version>
20    <relativePath>../setup-parent</relativePath>
21  </parent>
22
23  <artifactId>it-java9</artifactId>
24
25  <build>
26    <plugins>
27      <plugin>
28        <groupId>org.apache.maven.plugins</groupId>
29        <artifactId>maven-compiler-plugin</artifactId>
30        <configuration>
31          <target>1.9</target>
32        </configuration>
33      </plugin>
34      <plugin>
35        <groupId>@project.groupId@</groupId>
36        <artifactId>jacoco-maven-plugin</artifactId>
37        <executions>
38          <execution>
39            <goals>
40              <goal>prepare-agent</goal>
41              <goal>report</goal>
42            </goals>
43          </execution>
44          <execution>
45            <id>check</id>
46            <goals>
47              <goal>check</goal>
48            </goals>
49            <configuration>
50              <rules>
51                <!-- implementation is needed only for Maven 2 -->
52                <rule implementation="org.jacoco.maven.RuleConfiguration">
53                  <limits>
54                    <!-- implementation is needed only for Maven 2 -->
55                    <limit implementation="org.jacoco.report.check.Limit">
56                      <counter>INSTRUCTION</counter>
57                      <value>COVEREDCOUNT</value>
58                      <minimum>8</minimum>
59                      <maximum>8</maximum>
60                    </limit>
61                  </limits>
62                </rule>
63              </rules>
64            </configuration>
65          </execution>
66        </executions>
67      </plugin>
68    </plugins>
69  </build>
70</project>
71