Home | History | Annotate | Download | only in it-java9-offline-instrumentation
      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"
     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-java9-offline-instrumentation</artifactId>
     23 
     24   <dependencies>
     25     <dependency>
     26       <groupId>@project.groupId@</groupId>
     27       <artifactId>org.jacoco.agent</artifactId>
     28       <classifier>runtime</classifier>
     29       <version>@project.version@</version>
     30       <scope>test</scope>
     31     </dependency>
     32   </dependencies>
     33 
     34   <build>
     35     <plugins>
     36       <plugin>
     37         <groupId>org.apache.maven.plugins</groupId>
     38         <artifactId>maven-compiler-plugin</artifactId>
     39         <configuration>
     40           <source>9</source>
     41           <target>9</target>
     42         </configuration>
     43       </plugin>
     44       <plugin>
     45         <groupId>@project.groupId@</groupId>
     46         <artifactId>jacoco-maven-plugin</artifactId>
     47         <executions>
     48           <execution>
     49             <id>instrument-classes</id>
     50             <goals>
     51               <goal>instrument</goal>
     52             </goals>
     53           </execution>
     54           <execution>
     55             <id>restore-instrumented-classes</id>
     56             <goals>
     57               <goal>restore-instrumented-classes</goal>
     58             </goals>
     59           </execution>
     60           <execution>
     61             <id>report</id>
     62             <goals>
     63               <goal>report</goal>
     64             </goals>
     65             <configuration>
     66               <dataFile>${project.build.directory}/coverage.exec</dataFile>
     67             </configuration>
     68           </execution>
     69         </executions>
     70       </plugin>
     71       <plugin>
     72         <groupId>org.apache.maven.plugins</groupId>
     73         <artifactId>maven-surefire-plugin</artifactId>
     74         <configuration>
     75           <systemPropertyVariables>
     76             <jacoco-agent.destfile>${project.build.directory}/coverage.exec</jacoco-agent.destfile>
     77           </systemPropertyVariables>
     78         </configuration>
     79       </plugin>
     80     </plugins>
     81   </build>
     82 </project>
     83