PHOENIX-4774 Disable doclint in 1.8+ JDKs

Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/abda4707
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/abda4707
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/abda4707

Branch: refs/heads/4.x-cdh5.15
Commit: abda47074fb9652ed0cbecd0535b8e43a683f425
Parents: 0718a87
Author: Alex Araujo <alexara...@gmail.com>
Authored: Tue Jun 5 19:20:17 2018 +0100
Committer: Pedro Boado <pbo...@apache.org>
Committed: Wed Oct 17 21:25:07 2018 +0100

----------------------------------------------------------------------
 pom.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/abda4707/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index a01f3c8..ddbeaf1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -451,6 +451,9 @@
               <!-- TODO turn back on javadocs - disabled now for testing -->
               <!-- <goal>jar</goal> -->
             </goals>
+            <configuration>
+              <additionalparam>${javadoc.opts}</additionalparam>
+            </configuration>
           </execution>
         </executions>
       </plugin>
@@ -1004,6 +1007,16 @@
   </dependencyManagement>
 
   <profiles>
+    <!-- disable doclint with 1.8+ JDKs-->
+    <profile>
+      <id>java8-doclint-disabled</id>
+      <activation>
+        <jdk>[1.8,)</jdk>
+      </activation>
+      <properties>
+        <javadoc.opts>-Xdoclint:none</javadoc.opts>
+      </properties>
+    </profile>
     <!-- this profile should be activated for release builds -->
     <profile>
       <id>release</id>

Reply via email to