[ https://issues.apache.org/jira/browse/HDFS-15424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143589#comment-17143589 ]
Akira Ajisaka commented on HDFS-15424: -------------------------------------- The source file is automatically generated in generated-sources phase and later the com.google.protobuf.* are replaced with org.apache.hadoop.thirdparty.protobuf.* via maven-replacer-plugin in process-sources phase. The goal javadoc:javadoc is executed after generate-sources phase, which is before process-sources phase. Therefore the source code is not replaced when javadoc command is executed. That way the error occurs. In Java 8, this issue is regarded as warning (not error) as follows: {noformat} [INFO] --- maven-javadoc-plugin:3.0.1:javadoc (default-cli) @ hadoop-common --- [INFO] ExcludePrivateAnnotationsStandardDoclet 101 warnings [WARNING] Javadoc Warnings [WARNING] /home/aajisaka/git/hadoop/hadoop-common-project/hadoop-common/target/generated-sources/java/org/apache/hadoop/ipc/protobuf/RpcHeaderProtos.java:3467: error: cannot find symbol [WARNING] com.google.protobuf.GeneratedMessageV3 implements [WARNING] ^ [WARNING] symbol: class GeneratedMessageV3 {noformat} In Java 11, this becomes error. > Javadoc failing with "cannot find symbol > com.google.protobuf.GeneratedMessageV3 implements" > -------------------------------------------------------------------------------------------- > > Key: HDFS-15424 > URL: https://issues.apache.org/jira/browse/HDFS-15424 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Uma Maheswara Rao G > Priority: Major > > {noformat} > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 17.982 s > [INFO] Finished at: 2020-06-20T01:56:28Z > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (default-cli) on > project hadoop-hdfs: An error has occurred in Javadoc report generation: > [ERROR] Exit code: 1 - javadoc: warning - You have specified the HTML version > as HTML 4.01 by using the -html4 option. > [ERROR] The default is currently HTML5 and the support for HTML 4.01 will be > removed > [ERROR] in a future release. To suppress this warning, please ensure that any > HTML constructs > [ERROR] in your comments are valid in HTML5, and remove the -html4 option. > [ERROR] > /home/jenkins/jenkins-slave/workspace/hadoop-multibranch_PR-2084/src/hadoop-hdfs-project/hadoop-hdfs/target/generated-sources/java/org/apache/hadoop/hdfs/server/namenode/FsImageProto.java:25197: > error: cannot find symbol > [ERROR] com.google.protobuf.GeneratedMessageV3 implements > [ERROR] ^ > [ERROR] symbol: class GeneratedMessageV3 > [ERROR] location: package com.google.protobuf > [ERROR] > /home/jenkins/jenkins-slave/workspace/hadoop-multibranch_PR-2084/src/hadoop-hdfs-project/hadoop-hdfs/target/generated-sources/java/org/apache/hadoop/hdfs/server/namenode/FsImageProto.java:25319: > error: cannot find symbol > [ERROR] com.google.protobuf.GeneratedMessageV3 implements > [ERROR] ^ > [ERROR] symbol: class GeneratedMessageV3 > [ERROR] location: package com.google.protobuf > [ERROR] > /home/jenkins/jenkins-slave/workspace/hadoop-multibranch_PR-2084/src/hadoop-hdfs-project/hadoop-hdfs/target/generated-sources/java/org/apache/hadoop/hdfs/server/namenode/FsImageProto.java:26068: > error: cannot find symbol > [ERROR] com.google.protobuf.GeneratedMessageV3 implements > [ERROR] ^ > [ERROR] symbol: class GeneratedMessageV3 > [ERROR] location: package com.google.protobuf > [ERROR] > /home/jenkins/jenkins-slave/workspace/hadoop-multibranch_PR-2084/src/hadoop-hdfs-project/hadoop-hdfs/target/generated-sources/java/org/apache/hadoop/hdfs/server/namenode/FsImageProto.java:26073: > error: package com.google.protobuf.GeneratedMessageV3 does not exist > [ERROR] private > PersistToken(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org