Elan instance cache cleanup delay
[netvirt.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 94b6a49ec7138e242c8aaa19e6eada3e70e7dbb7..68116e89fccd871c4b2867e1df9875dc58100bab 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -11,14 +11,14 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
     <parent>
         <groupId>org.opendaylight.odlparent</groupId>
         <artifactId>odlparent-lite</artifactId>
-        <version>3.1.3</version>
+        <version>5.0.2</version>
         <relativePath/>
     </parent>
 
     <groupId>org.opendaylight.netvirt</groupId>
     <artifactId>netvirt-aggregator</artifactId>
-    <version>0.8.0-SNAPSHOT</version>
-    <name>ODL :: netvirt :: ${project.artifactId}</name>
+    <version>0.10.0-SNAPSHOT</version>
+    <name>netvirt</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
     <modelVersion>4.0.0</modelVersion>
 
@@ -81,6 +81,42 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
             <!-- When enabled, this empty profile disables the “sfc” profile above -->
             <id>no-sfc</id>
         </profile>
+        <profile>
+            <id>sonar-jacoco-aggregate</id>
+            <activation>
+                <property>
+                    <name>odl.jacoco.aggregateFile</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.jacoco</groupId>
+                        <artifactId>jacoco-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>merge</id>
+                                <goals>
+                                    <goal>merge</goal>
+                                </goals>
+                                <phase>generate-resources</phase>
+                                <configuration>
+                                    <destFile>${odl.jacoco.aggregateFile}</destFile>
+                                    <fileSets>
+                                        <fileSet>
+                                            <directory>${project.basedir}</directory>
+                                            <includes>
+                                                <include>**/target/code-coverage/*.exec</include>
+                                            </includes>
+                                        </fileSet>
+                                    </fileSets>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->