1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors 4 This program and the accompanying materials are made available under 5 the terms of the Eclipse Public License 2.0 which is available at 6 http://www.eclipse.org/legal/epl-2.0 7 8 SPDX-License-Identifier: EPL-2.0 9 10 Contributors: 11 Evgeny Mandrikov - initial API and implementation 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 <parent> 18 <groupId>jacoco</groupId> 19 <artifactId>setup-parent</artifactId> 20 <version>1.0-SNAPSHOT</version> 21 </parent> 22 23 <artifactId>it-java9-offline-instrumentation</artifactId> 24 25 <dependencies> 26 <dependency> 27 <groupId>@project.groupId@</groupId> 28 <artifactId>org.jacoco.agent</artifactId> 29 <classifier>runtime</classifier> 30 <version>@project.version@</version> 31 <scope>test</scope> 32 </dependency> 33 </dependencies> 34 35 <build> 36 <plugins> 37 <plugin> 38 <groupId>org.apache.maven.plugins</groupId> 39 <artifactId>maven-compiler-plugin</artifactId> 40 <configuration> 41 <source>9</source> 42 <target>9</target> 43 </configuration> 44 </plugin> 45 <plugin> 46 <groupId>@project.groupId@</groupId> 47 <artifactId>jacoco-maven-plugin</artifactId> 48 <executions> 49 <execution> 50 <id>instrument-classes</id> 51 <goals> 52 <goal>instrument</goal> 53 </goals> 54 </execution> 55 <execution> 56 <id>restore-instrumented-classes</id> 57 <goals> 58 <goal>restore-instrumented-classes</goal> 59 </goals> 60 </execution> 61 <execution> 62 <id>report</id> 63 <goals> 64 <goal>report</goal> 65 </goals> 66 <configuration> 67 <dataFile>${project.build.directory}/coverage.exec</dataFile> 68 </configuration> 69 </execution> 70 </executions> 71 </plugin> 72 <plugin> 73 <groupId>org.apache.maven.plugins</groupId> 74 <artifactId>maven-surefire-plugin</artifactId> 75 <configuration> 76 <systemPropertyVariables> 77 <jacoco-agent.destfile>${project.build.directory}/coverage.exec</jacoco-agent.destfile> 78 </systemPropertyVariables> 79 </configuration> 80 </plugin> 81 </plugins> 82 </build> 83</project> 84