Home | History | Annotate | Download | only in org.jacoco.agent
      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</artifactId>
     23 
     24   <name>JaCoCo :: Agent</name>
     25   <description>JaCoCo Agent</description>
     26 
     27   <build>
     28     <sourceDirectory>src</sourceDirectory>
     29 
     30     <plugins>
     31       <plugin>
     32         <groupId>org.apache.maven.plugins</groupId>
     33         <artifactId>maven-dependency-plugin</artifactId>
     34         <executions>
     35           <execution>
     36             <phase>prepare-package</phase>
     37             <goals>
     38               <goal>copy</goal>
     39             </goals>
     40             <configuration>
     41               <artifactItems>
     42                 <artifactItem>
     43                   <groupId>${project.groupId}</groupId>
     44                   <artifactId>org.jacoco.agent.rt</artifactId>
     45                   <classifier>all</classifier>
     46                   <version>${project.version}</version>
     47                   <destFileName>jacocoagent.jar</destFileName>
     48                 </artifactItem>
     49               </artifactItems>
     50               <outputDirectory>${project.build.directory}/classes</outputDirectory>
     51               <overWriteReleases>false</overWriteReleases>
     52               <overWriteSnapshots>false</overWriteSnapshots>
     53               <overWriteIfNewer>true</overWriteIfNewer>
     54             </configuration>
     55           </execution>
     56         </executions>
     57       </plugin>
     58 
     59       <plugin>
     60         <groupId>org.codehaus.mojo</groupId>
     61         <artifactId>build-helper-maven-plugin</artifactId>
     62         <executions>
     63           <execution>
     64             <id>attach-artifacts</id>
     65             <phase>package</phase>
     66             <goals>
     67               <goal>attach-artifact</goal>
     68             </goals>
     69             <configuration>
     70               <artifacts>
     71                 <artifact>
     72                   <file>${project.build.directory}/classes/jacocoagent.jar</file>
     73                   <type>jar</type>
     74                   <classifier>runtime</classifier>
     75                 </artifact>
     76               </artifacts>
     77             </configuration>
     78           </execution>
     79         </executions>
     80       </plugin>
     81     </plugins>
     82   </build>
     83 </project>
     84