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.build</artifactId> 18 <version>0.8.0</version> 19 <relativePath>../org.jacoco.build</relativePath> 20 </parent> 21 22 <artifactId>org.jacoco.agent.rt</artifactId> 23 <!-- do not set packaging to eclipse-plugin, because otherwise maven-shade-plugin will not work --> 24 25 <name>JaCoCo :: Agent RT</name> 26 <description>JaCoCo Java Agent</description> 27 28 <properties> 29 <maven.deploy.skip>true</maven.deploy.skip> 30 <maven.javadoc.skip>true</maven.javadoc.skip> 31 </properties> 32 33 <dependencies> 34 <dependency> 35 <groupId>${project.groupId}</groupId> 36 <artifactId>org.jacoco.core</artifactId> 37 </dependency> 38 </dependencies> 39 40 <build> 41 <sourceDirectory>src</sourceDirectory> 42 43 <plugins> 44 <plugin> 45 <groupId>org.apache.maven.plugins</groupId> 46 <artifactId>maven-shade-plugin</artifactId> 47 <executions> 48 <execution> 49 <phase>package</phase> 50 <goals> 51 <goal>shade</goal> 52 </goals> 53 <configuration> 54 <shadedArtifactAttached>true</shadedArtifactAttached> 55 <shadedClassifierName>all</shadedClassifierName> 56 <minimizeJar>true</minimizeJar> 57 <relocations> 58 <relocation> 59 <pattern>org.jacoco.agent.rt.internal</pattern> 60 <shadedPattern>${jacoco.runtime.package.name}</shadedPattern> 61 </relocation> 62 <relocation> 63 <pattern>org.jacoco.core</pattern> 64 <shadedPattern>${jacoco.runtime.package.name}.core</shadedPattern> 65 </relocation> 66 <relocation> 67 <pattern>org.objectweb.asm</pattern> 68 <shadedPattern>${jacoco.runtime.package.name}.asm</shadedPattern> 69 </relocation> 70 </relocations> 71 <transformers> 72 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 73 <manifestEntries> 74 <Premain-Class>${jacoco.runtime.package.name}.PreMain</Premain-Class> 75 <Automatic-Module-Name>${project.artifactId}</Automatic-Module-Name> 76 <Implementation-Title>${project.description}</Implementation-Title> 77 <Implementation-Vendor>${project.organization.name}</Implementation-Vendor> 78 <Implementation-Version>${project.version}</Implementation-Version> 79 </manifestEntries> 80 </transformer> 81 </transformers> 82 </configuration> 83 </execution> 84 </executions> 85 </plugin> 86 </plugins> 87 </build> 88</project> 89