Skip to content

build: link Javadoc to Vaadin API with an offline package list - #6

Merged
scardanzan merged 1 commit into
masterfrom
build/javadoc-offline-vaadin-links
Nov 30, 2026
Merged

scardanzan merged 1 commit into
masterfrom
build/javadoc-offline-vaadin-links

Conversation

@scardanzan

Copy link
Copy Markdown
Member

Problem

The Snapshot workflow failed at javadoc:jar. The javadoc tool downloads the package list of each <link> before it starts, and javadoc.flowingcode.com returns 403 to GitHub-hosted runners (Cloudflare):

error: Error fetching URL: https://javadoc.flowingcode.com/artifact/com.vaadin/vaadin-platform-javadoc/24.9.1/
(java.io.IOException: Server returned HTTP response code: 403 ...)

Change (directory profile)

  • maven-dependency-plugin unpacks element-list/package-list from com.vaadin:vaadin-platform-javadoc:${vaadin.version}:javadoc (Maven Central) into target/vaadin-javadoc at prepare-package.
  • maven-javadoc-plugin uses an offlineLink to https://vaadin.com/api/platform/${vaadin.version} with that folder, instead of the <link>. Nothing is downloaded from the link URL during the build.
  • Links now go to the official Vaadin API. vaadin.com/api does not serve the package list itself, which is why the offline link is needed.

Verification

  • mvn -Pdirectory -DskipTests clean package passes locally.
  • The generated Javadoc links to 8 Vaadin pages (Component, HasElement, HasStyle, AttachNotifier, DetachNotifier, Tag, JsModule, NpmPackage); all return 200.
  • Not yet checked: the build on GitHub runners, and how method anchors (#value()) behave in the vaadin.com viewer.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8cfdcc7e-2254-49e4-8698-ec34114382e2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The javadoc tool downloaded the package list of the linked Vaadin Javadoc
from javadoc.flowingcode.com, which returns 403 to GitHub-hosted runners, so
the snapshot build failed. Take the list from the Vaadin javadoc jar on Maven
Central instead and link to the official Vaadin API at vaadin.com/api.
@scardanzan
scardanzan force-pushed the build/javadoc-offline-vaadin-links branch from a28d459 to bc24edc Compare November 30, 2026 14:14
@scardanzan scardanzan changed the title build: link Javadoc to the Vaadin API without downloading its package list build: link Javadoc to Vaadin API with an offline package list Nov 30, 2026
@scardanzan
scardanzan merged commit f560e46 into master Nov 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant