Repository navigation
ATLAS-5432: Fix Enunciate JDK 8 build failure - #788
Merged
Merged
Conversation
nixonrodrigues
approved these changes
Oct 19, 2026
pareshddevalia
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Background :
The Atlas CI pipeline (ci.yml) runs a build matrix across JDK 8 and JDK 17 using GitHub Actions ubuntu-22.04 runners. The ubuntu-22.04 label is a floating image tag — GitHub auto-rolls the underlying VM image weekly, including all pre-installed tools. Atlas does not control its Maven version (no Maven wrapper, no actions/setup-maven step) — Maven comes entirely from the runner image.
The runner image ubuntu22/20261004.315 silently upgraded Maven from 3.9.16 to 3.10.0. Maven 3.10.0 ships Maven Resolver 2.x (up from Resolver 1.x in 3.9.16), which introduces stricter handling of system-scoped dependencies. Starting all JDK 8 CI builds began failing with zero code changes to the repository.
Problem Statement :
Expected behavior: JDK 8 builds should complete successfully, generating Swagger/OpenAPI documentation via Enunciate.
Root cause:
Why JDK 17 is NOT affected: The jdk-17 Maven profile switches to Enunciate 2.15.0, which dropped the tools.jar dependency entirely and uses javax.tools.ToolProvider.getSystemJavaCompiler() — the public standard API with no system-scoped dependencies.
Impact: All JDK 8 CI builds fail; JDK 17 builds were being cancelled by fail-fast: true default.
How the patch resolves it :
How was this patch tested?
Setup :
Use-cases validation :
- Only differences are non-deterministic enum example values in HTML docs (e.g., "PURGED" vs "ACTIVE" in JSON examples), which is normal Enunciate behavior across any two builds.