Home | History | Annotate | Download | only in it-offline-instrumentation
      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"
     13          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     14   <modelVersion>4.0.0</modelVersion>
     15 
     16   <parent>
     17     <groupId>jacoco</groupId>
     18     <artifactId>setup-parent</artifactId>
     19     <version>1.0-SNAPSHOT</version>
     20   </parent>
     21 
     22   <artifactId>it-offline-instrumentation</artifactId>
     23   <packaging>pom</packaging>
     24 
     25   <modules>
     26     <module>child</module>
     27     <module>child-without-main-classes</module>
     28   </modules>
     29 
     30   <dependencies>
     31     <dependency>
     32       <groupId>@project.groupId@</groupId>
     33       <artifactId>org.jacoco.agent</artifactId>
     34       <classifier>runtime</classifier>
     35       <version>@project.version@</version>
     36       <scope>test</scope>
     37     </dependency>
     38   </dependencies>
     39 
     40   <build>
     41     <plugins>
     42       <plugin>
     43         <groupId>@project.groupId@</groupId>
     44         <artifactId>jacoco-maven-plugin</artifactId>
     45         <executions>
     46           <execution>
     47             <id>instrument-classes</id>
     48             <goals>
     49               <goal>instrument</goal>
     50             </goals>
     51             <configuration>
     52               <excludes>
     53                 <exclude>**/DoNotInstrument.class</exclude>
     54               </excludes>
     55             </configuration>
     56           </execution>
     57           <execution>
     58             <id>restore-instrumented-classes</id>
     59             <goals>
     60               <goal>restore-instrumented-classes</goal>
     61             </goals>
     62           </execution>
     63           <execution>
     64             <id>report</id>
     65             <phase>prepare-package</phase>
     66             <goals>
     67               <goal>report</goal>
     68             </goals>
     69             <configuration>
     70               <dataFile>${project.build.directory}/coverage.exec</dataFile>
     71             </configuration>
     72           </execution>
     73         </executions>
     74       </plugin>
     75       <plugin>
     76         <groupId>org.apache.maven.plugins</groupId>
     77         <artifactId>maven-surefire-plugin</artifactId>
     78         <configuration>
     79           <systemPropertyVariables>
     80             <jacoco-agent.destfile>${project.build.directory}/coverage.exec</jacoco-agent.destfile>
     81           </systemPropertyVariables>
     82         </configuration>
     83       </plugin>
     84     </plugins>
     85   </build>
     86 </project>
     87