1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright (c) 2009, 2015 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.7.5.201505241946</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>junit</groupId> 38 <artifactId>junit</artifactId> 39 </dependency> 40 </dependencies> 41 <build> 42 <plugins> 43 <plugin> 44 <groupId>org.apache.maven.plugins</groupId> 45 <artifactId>maven-dependency-plugin</artifactId> 46 <executions> 47 <execution> 48 <id>default-unpack</id> 49 <phase>package</phase> 50 <goals> 51 <goal>unpack</goal> 52 </goals> 53 <configuration> 54 <artifactItems> 55 <artifactItem> 56 <groupId>${project.groupId}</groupId> 57 <artifactId>org.jacoco.examples</artifactId> 58 <version>${project.version}</version> 59 <type>zip</type> 60 <overWrite>true</overWrite> 61 <outputDirectory>${project.build.directory}/build</outputDirectory> 62 </artifactItem> 63 </artifactItems> 64 </configuration> 65 </execution> 66 </executions> 67 </plugin> 68 <plugin> 69 <groupId>org.apache.maven.plugins</groupId> 70 <artifactId>maven-invoker-plugin</artifactId> 71 <executions> 72 <execution> 73 <id>test-pom</id> 74 <goals> 75 <goal>install</goal> 76 <goal>run</goal> 77 </goals> 78 <configuration> 79 <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> 80 <postBuildHookScript>../../../src/test/resources/verify</postBuildHookScript> 81 <goals> 82 <goal>verify</goal> 83 </goals> 84 </configuration> 85 </execution> 86 <execution> 87 <id>test-pom-it</id> 88 <goals> 89 <goal>install</goal> 90 <goal>run</goal> 91 </goals> 92 <configuration> 93 <cloneProjectsTo>${project.build.directory}/it-it</cloneProjectsTo> 94 <postBuildHookScript>../../../src/test/resources/verify-it</postBuildHookScript> 95 <goals> 96 <!-- this is probably a hack! --> 97 <goal>-f pom-it.xml</goal> 98 <goal>verify</goal> 99 </goals> 100 </configuration> 101 </execution> 102 <execution> 103 <id>test-pom-offline</id> 104 <goals> 105 <goal>install</goal> 106 <goal>run</goal> 107 </goals> 108 <configuration> 109 <cloneProjectsTo>${project.build.directory}/it-offline</cloneProjectsTo> 110 <postBuildHookScript>../../../src/test/resources/verify-offline</postBuildHookScript> 111 <goals> 112 <!-- this is probably a hack! --> 113 <goal>-f pom-offline.xml</goal> 114 <goal>verify</goal> 115 </goals> 116 </configuration> 117 </execution> 118 </executions> 119 <configuration> 120 <projectsDirectory>${project.build.directory}/build/examples</projectsDirectory> 121 <properties> 122 <maven.compiler.source>${maven.compiler.source}</maven.compiler.source> 123 <maven.compiler.target>${maven.compiler.target}</maven.compiler.target> 124 </properties> 125 </configuration> 126 </plugin> 127 </plugins> 128 </build> 129</project> 130