• 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  </parent>
21
22  <artifactId>it-offline-instrumentation</artifactId>
23  <packaging>pom</packaging>
24
25  <modules>
26    <module>child</module>
27    <module>child-without-main-classes</module>
28  </modules>
29
30  <dependencies>
31    <dependency>
32      <groupId>@project.groupId@</groupId>
33      <artifactId>org.jacoco.agent</artifactId>
34      <classifier>runtime</classifier>
35      <version>@project.version@</version>
36      <scope>test</scope>
37    </dependency>
38  </dependencies>
39
40  <build>
41    <plugins>
42      <plugin>
43        <groupId>@project.groupId@</groupId>
44        <artifactId>jacoco-maven-plugin</artifactId>
45        <executions>
46          <execution>
47            <id>instrument-classes</id>
48            <goals>
49              <goal>instrument</goal>
50            </goals>
51            <configuration>
52              <excludes>
53                <exclude>**/DoNotInstrument.class</exclude>
54              </excludes>
55            </configuration>
56          </execution>
57          <execution>
58            <id>restore-instrumented-classes</id>
59            <goals>
60              <goal>restore-instrumented-classes</goal>
61            </goals>
62          </execution>
63          <execution>
64            <id>report</id>
65            <goals>
66              <goal>report</goal>
67            </goals>
68            <configuration>
69              <dataFile>${project.build.directory}/coverage.exec</dataFile>
70            </configuration>
71          </execution>
72        </executions>
73      </plugin>
74      <plugin>
75        <groupId>org.apache.maven.plugins</groupId>
76        <artifactId>maven-surefire-plugin</artifactId>
77        <configuration>
78          <systemPropertyVariables>
79            <jacoco-agent.destfile>${project.build.directory}/coverage.exec</jacoco-agent.destfile>
80          </systemPropertyVariables>
81        </configuration>
82      </plugin>
83    </plugins>
84  </build>
85</project>
86