Disable Java 8 linter on projects that fail
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 6 Apr 2016 20:29:27 +0000 (16:29 -0400)
committerTony Tkacik <ttkacik@cisco.com>
Tue, 19 Apr 2016 08:09:24 +0000 (08:09 +0000)
The new Java 8 linter is more strict and causes docs failures on several
projects. Disable it for projects that currently does not pass the
linter.

Change-Id: I0d29bad0a797aceeb9076eea8f80bcc071432b4c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
pom.xml

diff --git a/pom.xml b/pom.xml
index 62efd7df4df9d7b19c46a9d5327879935d1c17a6..004e2cf597665ab4f1619b935e8e5d0fe558b91c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <!-- Turn off doclint on aggregated API javadoc build. -->
+    <profile>
+      <id>jdk8</id>
+      <activation>
+        <jdk>[1.8,)</jdk>
+      </activation>
+
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <configuration>
+              <additionalparam>-Xdoclint:none</additionalparam>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
   <scm>
     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>