Skip to content

build: fail build explicitly on Javadoc errors#24378

Open
Artur- wants to merge 4 commits into
mainfrom
fail-build-javadoc
Open

build: fail build explicitly on Javadoc errors#24378
Artur- wants to merge 4 commits into
mainfrom
fail-build-javadoc

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented May 20, 2026

Make failOnError explicit on maven-javadoc-plugin so Javadoc errors visibly break the build instead of being buried in log output.

Make failOnError explicit on maven-javadoc-plugin so Javadoc errors
visibly break the build instead of being buried in log output.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

Test Results

1 209 files   -   209  1 209 suites   - 209   1h 18m 35s ⏱️ - 2m 41s
7 444 tests  - 2 556  7 394 ✅  - 2 537  50 💤  - 19  0 ❌ ±0 
7 919 runs   - 2 556  7 867 ✅  - 2 537  52 💤  - 19  0 ❌ ±0 

Results for commit f34f9c3. ± Comparison against base commit eef1d26.

♻️ This comment has been updated with latest results.

Comment thread pom.xml Outdated
<version>3.12.0</version>
<configuration>
<quiet>true</quiet>
<failOnError>true</failOnError>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change anything as the Default value for failOnError is true and it does fail the build.

Artur- added 3 commits May 22, 2026 13:30
Maven prefixes every Javadoc tool stderr line with [ERROR], so the
single real "error:" line gets lost among 100+ identically-prefixed
warning lines. Grep the actual error lines out of the per-shard Maven
log and write them to GITHUB_STEP_SUMMARY so they show up at the top
of the failing unit-tests job.

Also drops the redundant <failOnError>true</failOnError> override —
that's already the maven-javadoc-plugin default.
DO NOT MERGE. Temporary broken {@link} to a non-existent class so the
unit-tests job fails with a real Javadoc error, letting us confirm the
"Surface Javadoc errors" step actually surfaces it in the PR summary.
Revert before merge.
@caalador
Copy link
Copy Markdown
Contributor

At least this run doesn't actually print out any lines:
image

@sonarqubecloud
Copy link
Copy Markdown

@caalador
Copy link
Copy Markdown
Contributor

It shows up only on the summary page it seems:
image

Works quite well 👍

Comment on lines +49 to +50
*
* See {@link com.vaadin.flow.does.not.Exist} for related information.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*
* See {@link com.vaadin.flow.does.not.Exist} for related information.

Remove broken javadoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants