用maven错误构建hadoop:maven javadoc plugin

ohtdti5x  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(343)

我正在使用以下命令构建hadoop:

mvn package -Pdist,native,docs -DskipTests -Dtar

它给出以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (module-javadocs) on project hadoop-annotations: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /tmp/hadoop-2.5.0-src/hadoop-common-project/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceStability.java:27: error: unexpected end tag: </ul>
[ERROR] * </ul>

此错误是在生成 Apache Hadoop Annotations 模块:

[INFO] Apache Hadoop Main ................................ SUCCESS [1.000s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [1.350s]
[INFO] Apache Hadoop Annotations ......................... FAILURE [2.393s]
kmpatx3s

kmpatx3s1#

由于javadoc插件中存在错误,因此可以通过指定 -Dmaven.javadoc.skip=true .
这将在不生成java文档的情况下构建它。

相关问题