• 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/maven-v4_0_0.xsd">
14  <modelVersion>4.0.0</modelVersion>
15
16  <parent>
17    <groupId>org.jacoco</groupId>
18    <artifactId>org.jacoco.tests</artifactId>
19    <version>0.8.0</version>
20    <relativePath>../org.jacoco.tests</relativePath>
21  </parent>
22
23  <artifactId>jacoco-maven-plugin.test</artifactId>
24  <packaging>jar</packaging>
25
26  <name>JaCoCo :: Test :: Maven Plugin</name>
27
28  <properties>
29    <!-- Enable recording of coverage during execution of maven-invoker-plugin -->
30    <jacoco.propertyName>invoker.mavenOpts</jacoco.propertyName>
31    <jacoco.includes>org.jacoco.maven.*</jacoco.includes>
32  </properties>
33
34  <build>
35    <plugins>
36      <plugin>
37        <!-- To run with different Maven versions use -Dinvoker.mavenHome -->
38        <groupId>org.apache.maven.plugins</groupId>
39        <artifactId>maven-invoker-plugin</artifactId>
40        <configuration>
41          <skipInvocation>${skipTests}</skipInvocation>
42          <projectsDirectory>it</projectsDirectory>
43          <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
44          <pomIncludes>
45            <pomInclude>*/pom.xml</pomInclude>
46          </pomIncludes>
47          <postBuildHookScript>verify</postBuildHookScript>
48          <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
49          <goals>
50            <goal>clean</goal>
51            <goal>install</goal>
52          </goals>
53          <settingsFile>it/settings.xml</settingsFile>
54          <extraArtifacts>
55            <extraArtifact>org.jacoco:org.jacoco.agent:${project.version}:jar:runtime</extraArtifact>
56          </extraArtifacts>
57        </configuration>
58        <executions>
59          <execution>
60            <goals>
61              <goal>install</goal>
62              <goal>run</goal>
63            </goals>
64          </execution>
65        </executions>
66      </plugin>
67    </plugins>
68  </build>
69</project>
70