You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2026/10/08 20:53:17 UTC
[I] Javadoc generation fails for modules whose Java sources import same-module Scala classes [hudi]
yihua opened a new issue, #20237:
URL: https://github.com/apache/hudi/issues/20237
Every PR on this repo shows red "cannot find symbol" check annotations on files it never touched, for example on #19914 and #20215. They come from `maven-javadoc-plugin:jar (attach-javadocs)`, which the `validate-bundles` job runs through `-DdeployArtifacts=true`.
The javadoc plugin only puts dependency artifacts on javadoc's classpath, not the module's own `target/classes`. Java sources that import Scala classes compiled in the same module therefore do not resolve: `hudi-spark-client` fails with 94 errors (`SparkAdapterSupport$`, `HoodieInternalRowUtils`, `HoodieSchemaConversionUtils`, ...) and `hudi-spark-common` with 1 (`DataSourceWriteOptions`). `failOnError=false` keeps the build green, so the published javadoc jars for those modules are incomplete and the errors only surface as annotations that bury real ones.
Proposal: in the `deployArtifacts` profile, add the module's own jar to javadoc's classpath through `additionalDependencies` (system scope, `systemPath` pointing at the jar `jar:jar` builds earlier in the package phase), mirroring how cross-module Scala references already resolve through dependency jars.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javadoc generation fails for modules whose Java sources import same-module Scala classes [hudi]
Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on issue #20237:
URL: https://github.com/apache/hudi/issues/20237#issuecomment-6069097904
Fix: #20238
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javadoc generation fails for modules whose Java sources import same-module Scala classes [hudi]
Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua closed issue #20237: Javadoc generation fails for modules whose Java sources import same-module Scala classes
URL: https://github.com/apache/hudi/issues/20237
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org