Fix JaCoCo plugin to produce local reports
[netvirt.git] / commons / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8   </parent>
9   <groupId>org.opendaylight.ovsdb</groupId>
10   <artifactId>commons</artifactId>
11   <version>1.1.0-SNAPSHOT</version>
12   <packaging>pom</packaging>
13   <prerequisites>
14     <maven>3.0</maven>
15   </prerequisites>
16   <properties>
17     <java.version.source>1.7</java.version.source>
18     <java.version.target>1.7</java.version.target>
19     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
20     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21     <!-- Use Jacoco 6.4 for the seperate integration-test reporting -->
22     <jacoco.version>0.6.4.201312101107</jacoco.version>
23     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
24     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
25     <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
26   </properties>
27
28   <dependencyManagement>
29     <dependencies>
30       <dependency>
31         <groupId>org.opendaylight.ovsdb</groupId>
32         <artifactId>ovsdb</artifactId>
33         <version>0.5.1-SNAPSHOT</version>
34       </dependency>
35     </dependencies>
36   </dependencyManagement>
37
38   <build>
39     <pluginManagement>
40       <plugins>
41         <plugin>
42           <groupId>org.apache.maven.plugins</groupId>
43           <artifactId>maven-compiler-plugin</artifactId>
44           <configuration>
45             <source>${java.version.source}</source>
46             <target>${java.version.target}</target>
47             <testSource>${java.version.source}</testSource>
48             <testTarget>${java.version.target}</testTarget>
49           </configuration>
50         </plugin>
51       </plugins>
52     </pluginManagement>
53     <plugins>
54       <plugin>
55         <groupId>org.jacoco</groupId>
56         <artifactId>jacoco-maven-plugin</artifactId>
57         <executions>
58           <execution>
59             <id>pre-unit-test</id>
60             <goals>
61               <goal>prepare-agent</goal>
62             </goals>
63             <configuration>
64               <destFile>${sonar.jacoco.reportPath}</destFile>
65               <propertyName>surefireArgLine</propertyName>
66             </configuration>
67           </execution>
68           <execution>
69             <id>pre-integration-test</id>
70             <goals>
71               <goal>prepare-agent-integration</goal>
72             </goals>
73             <configuration>
74               <destFile>${sonar.jacoco.itReportPath}</destFile>
75               <propertyName>failsafeArgLine</propertyName>
76             </configuration>
77           </execution>
78           <execution>
79             <id>post-unit-test</id>
80             <goals>
81               <goal>report</goal>
82             </goals>
83             <configuration>
84               <dataFile>${sonar.jacoco.reportPath}</dataFile>
85             </configuration>
86           </execution>
87           <execution>
88             <id>post-integration-test</id>
89             <goals>
90               <goal>report-integration</goal>
91             </goals>
92             <configuration>
93               <dataFile>${sonar.jacoco.itReportPath}</dataFile>
94             </configuration>
95           </execution>
96         </executions>
97       </plugin>
98       <plugin>
99         <groupId>org.apache.maven.plugins</groupId>
100         <artifactId>maven-surefire-plugin</artifactId>
101         <configuration>
102           <!-- Use the Jacoco Argline -->
103           <argLine>${surefireArgLine}</argLine>
104         </configuration>
105       </plugin>
106       <plugin>
107         <groupId>org.apache.maven.plugins</groupId>
108         <artifactId>maven-failsafe-plugin</artifactId>
109         <configuration>
110           <!-- Use the Jacoco Argline -->
111           <argLine>${failsafeArgLine}</argLine>
112         </configuration>
113       </plugin>
114     </plugins>
115   </build>
116   <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
117   <scm>
118     <connection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</connection>
119     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/ovsdb.git</developerConnection>
120     <tag>HEAD</tag>
121     <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
122   </scm>
123
124   <repositories>
125     <!-- Opendaylight public group -->
126     <repository>
127       <snapshots>
128         <enabled>false</enabled>
129       </snapshots>
130       <id>opendaylight-public</id>
131       <name>opendaylight-public</name>
132       <url>${nexusproxy}/groups/public/</url>
133     </repository>
134     <!-- OpenDayLight Released artifact -->
135     <repository>
136       <id>opendaylight-release</id>
137       <name>opendaylight-release</name>
138       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
139     </repository>
140     <!-- OpenDayLight Snapshot artifact -->
141     <repository>
142       <id>opendaylight-snapshot</id>
143       <name>opendaylight-snapshot</name>
144       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
145     </repository>
146   </repositories>
147
148   <pluginRepositories>
149     <pluginRepository>
150       <snapshots>
151         <enabled>false</enabled>
152       </snapshots>
153       <id>opendaylight-public</id>
154       <name>opendaylight-public</name>
155       <url>http://nexus.opendaylight.org/content/groups/public/</url>
156     </pluginRepository>
157     <pluginRepository>
158       <id>opendaylight-release</id>
159       <name>central2</name>
160       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release/</url>
161     </pluginRepository>
162     <pluginRepository>
163       <id>opendaylight-snapshot</id>
164       <name>central2</name>
165       <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
166     </pluginRepository>
167   </pluginRepositories>
168 </project>