Freeze upstream versions
[netvirt.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 40aedd6b4f1ffd67af6a5543a39ce8bd9e0f658c..ff2cf3597021cbddd9b132dee20c3b0cecc84bd3 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>4.0.2</version>
+        <version>8.1.1</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.12.0-SNAPSHOT</version>
+    <name>netvirt</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
     <modelVersion>4.0.0</modelVersion>
 
@@ -45,13 +45,19 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
         <url>https://wiki.opendaylight.org/view/OVSDB_Integration:Main</url>
     </scm>
 
+    <properties>
+        <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
+        <maven.deploy.skip>true</maven.deploy.skip>
+        <maven.install.skip>true</maven.install.skip>
+
+    </properties>
+
     <modules>
         <module>aclservice</module>
         <module>alarm</module>
         <module>artifacts</module>
         <module>bgpmanager</module>
         <module>cache</module>
-        <module>coe</module>
         <module>commons</module>
         <module>dhcpservice</module>
         <module>elanmanager</module>
@@ -67,39 +73,55 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
         <module>vpnmanager</module>
     </modules>
 
+    <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <!-- Downgrade javadoc plugin, as 3.1.0+ breaks with maven.compiler.release=11 + javadoc:aggregate -->
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <version>3.0.1</version>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
     <profiles>
         <profile>
-            <id>sfc</id>
+            <id>sonar-jacoco-aggregate</id>
             <activation>
-                <activeByDefault>true</activeByDefault>
+                <property>
+                    <name>odl.jacoco.aggregateFile</name>
+                </property>
             </activation>
-            <modules>
-                <module>sfc</module>
-            </modules>
-        </profile>
-        <profile>
-            <!-- When enabled, this empty profile disables the “sfc” profile above -->
-            <id>no-sfc</id>
+            <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 -->
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-install-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
 </project>