Bläddra i källkod

HADOOP-11269. Add java 8 profile for hadoop-annotations. Contributed by Li Lu.

Haohui Mai 10 år sedan
förälder
incheckning
0762b4a3fb

+ 15 - 0
hadoop-common-project/hadoop-annotations/pom.xml

@@ -71,6 +71,21 @@
         </dependency>
         </dependency>
       </dependencies>
       </dependencies>
     </profile>
     </profile>
+    <profile>
+      <id>jdk1.8</id>
+      <activation>
+        <jdk>1.8</jdk>
+      </activation>
+      <dependencies>
+        <dependency>
+          <groupId>jdk.tools</groupId>
+          <artifactId>jdk.tools</artifactId>
+          <version>1.8</version>
+          <scope>system</scope>
+          <systemPath>${java.home}/../lib/tools.jar</systemPath>
+        </dependency>
+      </dependencies>
+    </profile>
   </profiles>
   </profiles>
 
 
 </project>
 </project>

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -395,6 +395,8 @@ Release 2.7.0 - UNRELEASED
     HADOOP-11230. Add missing dependency of bouncycastle for kms, httpfs, hdfs, MR
     HADOOP-11230. Add missing dependency of bouncycastle for kms, httpfs, hdfs, MR
     and YARN. (Robert Kanter via wheat9)
     and YARN. (Robert Kanter via wheat9)
 
 
+    HADOOP-11269. Add java 8 profile for hadoop-annotations. (Li Lu via wheat9)
+
 Release 2.6.0 - UNRELEASED
 Release 2.6.0 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES