[
https://issues.apache.org/jira/browse/FLINK-40145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115986#comment-18115986
]
Martijn Visser commented on FLINK-40145:
----------------------------------------
Confirmed. FLINK-40665 is fixed, so the deploy step ran to the end for the
first time since
2026-07-26 and failed here again:
https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=79133
{code}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.8.0:jar (attach-javadocs) on
project flink-model-triton: MavenReportException: Error while generating
Javadoc:
[ERROR] error: the unnamed module reads package kotlin.streams.jdk8 from both
kotlin.stdlib and kotlin.stdlib.jdk8
[ERROR] error: module kotlin.stdlib reads package kotlin.text from both
kotlin.stdlib.jdk8 and kotlin.stdlib
[ERROR] Command line was: /usr/lib/jvm/jdk-11.0.19+7/bin/javadoc ...
[ERROR] mvn <args> -rf :flink-model-triton
{code}
{{cron_snapshot_deployment_maven}} has been red on all 69 master nightlies from
2026-07-10 to
2026-09-16 -- the last green one is build 76907 of 2026-07-09 -- so the
snapshot deployment has not
completed once in that time. It is now the only
thing failing in that job; {{cron_snapshot_deployment_binary}} is green.
{{tools/releasing/deploy_staging_jars.sh}} runs {{-Prelease,docs-and-source}}
and {{attach-javadocs}}
sits in {{docs-and-source}}, so a release manager running the same script would
hit this too.
> flink-model-triton javadoc fails on JDK 11: kotlin.stdlib split-package
> -----------------------------------------------------------------------
>
> Key: FLINK-40145
> URL: https://issues.apache.org/jira/browse/FLINK-40145
> Project: Flink
> Issue Type: Bug
> Components: Library / Machine Learning
> Affects Versions: 2.4.0
> Reporter: Martijn Visser
> Priority: Major
>
> https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=77068&view=results
> (leg: cron_snapshot_deployment_maven)
> {code}
> [ERROR] error: module kotlin.stdlib reads package kotlin.text from both
> kotlin.stdlib.jdk8 and kotlin.stdlib
> ... (repeated for kotlin.system, kotlin.sequences, kotlin.reflect,
> kotlin.ranges,
> kotlin.random(.jdk8), kotlin.properties, kotlin.math)
> [ERROR] Command line was: .../jdk-11.0.19+7/bin/javadoc ...
> {code}
> The snapshot-deployment javadoc build for flink-model-triton fails on JDK 11
> because the
> OpenAI Java client dependency chain pulls kotlin-stdlib-1.9.10 together with
> kotlin-stdlib-jdk8-1.9.10 (via openai-java 1.6.1 / okhttp 4.12.0). On JDK 11
> the javadoc
> tool sees both jars as automatic modules named `kotlin.stdlib` and rejects
> the split
> packages (kotlin.text etc. exported from both). Deps observed on the module
> path:
> kotlin-reflect/stdlib/stdlib-common/stdlib-jdk7/stdlib-jdk8 1.9.10, okhttp
> 4.12.0,
> okio 3.6.0, openai-java(-core/-client-okhttp) 1.6.1, jackson-module-kotlin
> 2.21.3.
> Only bites javadoc generation (snapshot deploy), not compile/test.
> Proposed fix directions (for owner): exclude kotlin-stdlib-jdk7/jdk8 (folded
> into
> kotlin-stdlib since 1.8) so only one kotlin.stdlib module is on the path; or
> skip/relax
> javadoc for flink-model-triton; or exclude these deps from the javadoc
> classpath.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)