Downgrate aggregator's javadoc plugin 22/85922/2
authorAbhinav Gupta <abhinav.gupta@ericsson.com>
Thu, 21 Nov 2019 07:18:35 +0000 (12:48 +0530)
committerAbhinav Gupta <abhinav.gupta@ericsson.com>
Thu, 21 Nov 2019 09:00:43 +0000 (09:00 +0000)
javadoc-verify/merge jobs are affected by some bug in maven-javadoc-plugin
-- it would filter iana-if-type dependency, leading to a a failure in
javadoc:aggregate.

Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
Change-Id: Idad42d043d4eeaed744c54262035ba990eedabad

pom.xml

diff --git a/pom.xml b/pom.xml
index 95daf2eea870e3e03b8ea5f8d9acbd8c21045b22..a096be07fe74b53271550e008c5e223a1e4ca4e9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -45,6 +45,13 @@ 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>
@@ -66,6 +73,18 @@ 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>
@@ -118,23 +137,4 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
         </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>