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