[ 
https://issues.apache.org/jira/browse/FLINK-40145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115128#comment-18115128
 ] 

Martijn Visser commented on FLINK-40145:
----------------------------------------

This is still failing and has been masked since 2026-07-26. 
cron_snapshot_deployment_maven now fails earlier on a stale free_disk_space.sh 
path, so the javadoc error is no longer visible in the nightly. It first 
appeared in build 76959 (2026-07-10) and the job has been red ever since:

    {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.jdk8 and kotlin.stdlib
    {code}

    Once the path is fixed this will be the remaining reason Maven snapshots 
are not published.

> 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)

Reply via email to