Repository navigation
Pin Maven 3.9.11 in the PR builder - #4647
Merged
DonOmalVindula merged 1 commit intoOct 13, 2026
Merged
Conversation
hwupathum
approved these changes
Oct 13, 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.
Purpose
Every pull request build on
4.12.xhas failed since theubuntu-latestrunner image moved from Maven 3.9.16 to Maven 3.10.0 (image20261002.596, release notesubuntu24/20261004.327). The build stops at Maven startup, before anything is compiled:The feature modules declare
carbon-p2-pluginas a build extension, and the Tycho 4.0.6 it brings in does not wire under Maven 3.10.0. Runs on the previous image (20260901.588) pass; runs on the new image fail, for example https://github.com/wso2/carbon-kernel/actions/runs/37621622019 (7 October) and https://github.com/wso2/carbon-kernel/actions/runs/38350088181 (13 October). The samemvn validateon this branch passes with Maven 3.9.15 and fails with the identical error with Maven 3.10.0 on a developer machine.Goals
Make the PR builder independent of the Maven version that happens to ship on the runner image.
Approach
Add a step after the JDK setup that downloads Apache Maven 3.9.11 from the Apache archive, verifies its SHA-512 against the published checksum, and puts it first on
PATH. This is the same stepwso2/product-isadded to its GitHub-hosted workflows on 11 October (wso2/product-is@33d5a2fc99 and wso2/product-is@4a04c64c7a).User stories
N/A
Developer Checklist (Mandatory)
product-isissue to track any behavioral change or migration impact.Release note
N/A, build workflow only.
Documentation
N/A, build workflow only.
Training
N/A
Certification
N/A, no product change.
Marketing
N/A
Automation tests
Security checks
Samples
N/A
Related PRs
Migrations (if applicable)
N/A
Test environment
mvn -B validateon4.12.xpasses with Maven 3.9.15 and fails at startup with Maven 3.10.0 with the error above.Learning
Tycho 4.0.6, which
carbon-p2-plugin5.5.1 brings in as a build extension, does not load under Apache Maven 3.10.0; pinning the Maven version on the runner keeps the build off the image's Maven until the plugin side catches up.