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.build</artifactId> 18 <version>0.7.5.201505241946</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 <jarsigner.skip>true</jarsigner.skip> 30 <maven.deploy.skip>true</maven.deploy.skip> 31 <maven.javadoc.skip>true</maven.javadoc.skip> 32 </properties> 33 34 <dependencies> 35 <dependency> 36 <groupId>${project.groupId}</groupId> 37 <artifactId>org.jacoco.core</artifactId> 38 </dependency> 39 </dependencies> 40 41 <build> 42 <sourceDirectory>src</sourceDirectory> 43 44 <plugins> 45 <plugin> 46 <groupId>org.apache.maven.plugins</groupId> 47 <artifactId>maven-shade-plugin</artifactId> 48 <executions> 49 <execution> 50 <phase>package</phase> 51 <goals> 52 <goal>shade</goal> 53 </goals> 54 <configuration> 55 <shadedArtifactAttached>true</shadedArtifactAttached> 56 <shadedClassifierName>all</shadedClassifierName> 57 <minimizeJar>true</minimizeJar> 58 <relocations> 59 <relocation> 60 <pattern>org.jacoco.agent.rt.internal</pattern> 61 <shadedPattern>${jacoco.runtime.package.name}</shadedPattern> 62 </relocation> 63 <relocation> 64 <pattern>org.jacoco.core</pattern> 65 <shadedPattern>${jacoco.runtime.package.name}.core</shadedPattern> 66 </relocation> 67 <relocation> 68 <pattern>org.objectweb.asm</pattern> 69 <shadedPattern>${jacoco.runtime.package.name}.asm</shadedPattern> 70 </relocation> 71 </relocations> 72 <transformers> 73 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 74 <manifestEntries> 75 <Premain-Class>${jacoco.runtime.package.name}.PreMain</Premain-Class> 76 </manifestEntries> 77 </transformer> 78 </transformers> 79 </configuration> 80 </execution> 81 </executions> 82 </plugin> 83 </plugins> 84 </build> 85 </project> 86