在OS X上构建Hadoop 2.6.4时出错:

时间:2016-05-12 21:05:25

标签: maven hadoop java-8

[INFO] Apache Hadoop Annotations .......................... FAILURE [1.212 s]

我在OS X上构建Hadoop 2.6.4时遇到错误。我尝试了各种方法来跳过Javadoc代码,但它仍然无效。

$ mvn clean package -DskipTests -DskipDocs -Dmaven.javadoc.skip=true

$ mvn clean package -Pdist -DskipTests -Dtar -Dmaven.javadoc.skip=true

$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /opt/local/share/java/maven3
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.4", arch: "x86_64", family: "mac"

E.g。这是示例输出。

[ERROR]   symbol:   class AnnotationDesc
  location: class ExcludeHandler
/Users/davidlaxer/hadoop/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/RootDocProcessor.java:[226,11] error: cannot find symbol
[ERROR]   symbol:   class Doc
  location: class ExcludeHandler
/Users/davidlaxer/hadoop/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java:[36,11] error: cannot find symbol
[ERROR]   symbol:   variable LanguageVersion
  location: class ExcludePrivateAnnotationsJDiffDoclet
/Users/davidlaxer/hadoop/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java:[42,16] error: cannot access Doclet
[ERROR]   class file for com.sun.javadoc.Doclet not found
/Users/davidlaxer/hadoop/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java:[35,11] error: cannot find symbol

0 个答案:

没有答案