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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 13 <modelVersion>4.0.0</modelVersion> 14 15 <parent> 16 <groupId>org.jacoco</groupId> 17 <artifactId>org.jacoco.tests</artifactId> 18 <version>0.8.0</version> 19 <relativePath>../org.jacoco.tests</relativePath> 20 </parent> 21 22 <artifactId>org.jacoco.examples.test</artifactId> 23 24 <name>JaCoCo :: Test :: Examples</name> 25 26 <properties> 27 <jacoco.includes>org.jacoco.examples.*</jacoco.includes> 28 <jacoco.excludes>org.jacoco.examples.CoreTutorial$TestTarget</jacoco.excludes> 29 </properties> 30 31 <dependencies> 32 <dependency> 33 <groupId>${project.groupId}</groupId> 34 <artifactId>org.jacoco.examples</artifactId> 35 </dependency> 36 <dependency> 37 <groupId>${project.groupId}</groupId> 38 <artifactId>org.jacoco.agent.rt</artifactId> 39 </dependency> 40 <dependency> 41 <groupId>junit</groupId> 42 <artifactId>junit</artifactId> 43 </dependency> 44 </dependencies> 45 <build> 46 <plugins> 47 <plugin> 48 <groupId>org.apache.maven.plugins</groupId> 49 <artifactId>maven-dependency-plugin</artifactId> 50 <executions> 51 <execution> 52 <id>default-unpack</id> 53 <phase>package</phase> 54 <goals> 55 <goal>unpack</goal> 56 </goals> 57 <configuration> 58 <artifactItems> 59 <artifactItem> 60 <groupId>${project.groupId}</groupId> 61 <artifactId>org.jacoco.examples</artifactId> 62 <version>${project.version}</version> 63 <type>zip</type> 64 <overWrite>true</overWrite> 65 <outputDirectory>${project.build.directory}/build</outputDirectory> 66 </artifactItem> 67 </artifactItems> 68 </configuration> 69 </execution> 70 </executions> 71 </plugin> 72 <plugin> 73 <groupId>org.apache.maven.plugins</groupId> 74 <artifactId>maven-invoker-plugin</artifactId> 75 <executions> 76 <execution> 77 <id>test-pom</id> 78 <goals> 79 <goal>install</goal> 80 <goal>run</goal> 81 </goals> 82 <configuration> 83 <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> 84 <postBuildHookScript>../../../src/test/resources/verify</postBuildHookScript> 85 <goals> 86 <goal>verify</goal> 87 </goals> 88 </configuration> 89 </execution> 90 <execution> 91 <id>test-pom-it</id> 92 <goals> 93 <goal>install</goal> 94 <goal>run</goal> 95 </goals> 96 <configuration> 97 <cloneProjectsTo>${project.build.directory}/it-it</cloneProjectsTo> 98 <postBuildHookScript>../../../src/test/resources/verify-it</postBuildHookScript> 99 <goals> 100 <!-- this is probably a hack! --> 101 <goal>-f pom-it.xml</goal> 102 <goal>verify</goal> 103 </goals> 104 </configuration> 105 </execution> 106 <execution> 107 <id>test-pom-offline</id> 108 <goals> 109 <goal>install</goal> 110 <goal>run</goal> 111 </goals> 112 <configuration> 113 <cloneProjectsTo>${project.build.directory}/it-offline</cloneProjectsTo> 114 <postBuildHookScript>../../../src/test/resources/verify-offline</postBuildHookScript> 115 <goals> 116 <!-- this is probably a hack! --> 117 <goal>-f pom-offline.xml</goal> 118 <goal>verify</goal> 119 </goals> 120 </configuration> 121 </execution> 122 </executions> 123 <configuration> 124 <projectsDirectory>${project.build.directory}/build/examples</projectsDirectory> 125 <properties> 126 <maven.compiler.source>${maven.compiler.source}</maven.compiler.source> 127 <maven.compiler.target>${maven.compiler.target}</maven.compiler.target> 128 </properties> 129 </configuration> 130 </plugin> 131 </plugins> 132 </build> 133</project> 134