我想设置Hadoop环境。我按照本网站的教程:https://svn.apache.org/viewvc/hadoop/common/branches/branch-2/BUILDING.txt?view=markup
我设法设置了jdk,maven,protocolbuffer。 然后我运行命令mvn package [-Pdist] [ - Pdocs] [ - Psrc] [ - Dtar] 但是失败并且得到了下面的错误。我不明白。有什么问题?以及如何解决它?
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.110 s
[INFO] Finished at: 2015-01-09T20:12:17+08:00
[INFO] Final Memory: 41M/168M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-annotations: MavenReportException: Er
ror while creating archive:
[ERROR] Exit code: 1 - C:\hdfs\hadoop-common-project\hadoop-annotations\src\main
\java\org\apache\hadoop\classification\InterfaceStability.java:27: error: unexpe
cted end tag: </ul>
[ERROR] * </ul>
[ERROR] ^
[ERROR]
[ERROR] Command line was: "C:\Program Files\Java\jdk1.8.0_11\jre\..\bin\javadoc.
exe" @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'C:\hdfs\hadoop-common-project\h
adoop-annotations\target' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-annotations
C:\hdfs>
答案 0 :(得分:0)
在您的全局属性部分添加一行-Xdoclint:none。