Repository navigation
Improve Java emitter Maven CI builds - #12752
Merged
Alan Zimmer (alzimmermsft) merged 4 commits intoDec 4, 2026
Merged
Alan Zimmer (alzimmermsft) merged 4 commits into
Alan Zimmer (alzimmermsft) merged 4 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
All changed packages have been documented.
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Java 17 target leaves validation accepting Java 11–16, causing an UnsupportedClassVersionError reported as an unknown error instead of a clear SDK dependency diagnostic.
1 open issue
What changed in this PR
Improves Maven CI efficiency for the Java emitter and centralizes its generator build configuration.
Changes:
- Adds OS- and parent-POM-keyed Maven caching.
- Enables parallel, quieter Maven commands.
- Centralizes dependency and plugin versions and targets Java 17.
| File | Description |
|---|---|
packages/http-client-java/generator/pom.xml |
Centralizes versions and sets Java 17 compilation. |
packages/http-client-java/generator/http-client-generator/pom.xml |
Inherits dependency and Shade plugin versions. |
packages/http-client-java/generator/http-client-generator-test/pom.xml |
Inherits test dependency versions and exclusions. |
packages/http-client-java/generator/http-client-generator-mgmt/pom.xml |
Inherits management generator dependency versions. |
packages/http-client-java/generator/http-client-generator-core/pom.xml |
Inherits core dependency and plugin configuration. |
packages/http-client-java/generator/http-client-generator-clientcore-test/pom.xml |
Inherits ClientCore test dependency versions. |
packages/http-client-java/generator/http-client-generator-clientcore-test/Generate.ps1 |
Uses parallel, quieter smoke-test builds. |
packages/http-client-java/eng/scripts/Build-Packages.ps1 |
Runs parallel, quieter formatting checks. |
packages/http-client-java/eng/pipeline/templates/ci-stages.yml |
Configures Maven repository caching. |
.chronus/changes/alzimmermsft-java-ci-maven-caching-2026-11-4-12-25-55.md |
Records the internal build changes. |
Review effort: Balanced
|
You can try these changes here
|
Reuse the generator build for Spector testing, streamline regeneration packaging, limit Maven CI logging, and require Java 17 before generator execution. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
End-to-end template execution and Maven cache behavior remain unverified for the shared pipeline changes, requiring Windows and Linux CI runs before approval.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
Revert the combined Build and Test stage and fix spelling in Java CI configuration. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Jorge Rangel (jorgerangel-msft)
approved these changes
Dec 4, 2026
Alan Zimmer (alzimmermsft)
deleted the
alzimmermsft-java-ci-maven-caching
branch
December 4, 2026 22:48
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.

Summary
Validation