[fix](build) Upgrade Maven from 3.6.3 to 3.9.9 in build-env images#63600
Open
officialasishkumar wants to merge 1 commit into
Open
[fix](build) Upgrade Maven from 3.6.3 to 3.9.9 in build-env images#63600officialasishkumar wants to merge 1 commit into
officialasishkumar wants to merge 1 commit into
Conversation
The FE build enforces Maven >= 3.9.0 (fe/pom.xml maven-enforcer-plugin requireMavenVersion [3.9.0,), required by the Maven build cache extension configured in fe/.mvn), but the build-env Docker images still install Maven 3.6.3. As a result, building Doris master inside the recommended apache/doris:build-env-ldb-toolchain-latest image fails in the FE phase with the enforcer "requireMavenVersion" check. Upgrade Maven to 3.9.9 in all build-env Dockerfiles (docker/compilation/Dockerfile, Dockerfile.gcc10, Dockerfile.gcc7 and arm/Dockerfile) so the images satisfy the enforced version range. All four now fetch the artifact from the permanent archive.apache.org location, so the pinned version stays downloadable after it rolls off the current-release mirrors. This also repairs the gcc7 image, which pointed at the long-defunct mirror.bit.edu.cn host; its SHA-512 checksum is updated to the official value for apache-maven-3.9.9-bin.tar.gz.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
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 problem does this PR solve?
Issue Number: close #62412
Problem Summary:
The FE build enforces Maven
>= 3.9.0via themaven-enforcer-plugin(fe/pom.xml,requireMavenVersion[3.9.0,)), which is required by the Maven build cache extension configured underfe/.mvn. However, every build-env Docker image underdocker/compilation/still installs Maven 3.6.3:docker/compilation/Dockerfile(source of the recommendedbuild-env-ldb-toolchain-latestimage)docker/compilation/Dockerfile.gcc10docker/compilation/Dockerfile.gcc7docker/compilation/arm/DockerfileAs a result, building Doris
masterinside the recommendedapache/doris:build-env-ldb-toolchain-latestimage fails during the FE phase with the enforcer check:This PR upgrades Maven to 3.9.9 in all four build-env Dockerfiles so the images satisfy the enforced version range.
Additional notes:
archive.apache.orglocation, so the pinned version keeps resolving after it rolls off the current-release mirrors (downloads.apache.org/dlcdn.apache.orgonly retain recent releases).gcc7image, which fetched Maven from the long-defunctmirror.bit.edu.cnhost; itsSHA-512checksum is updated to the official value forapache-maven-3.9.9-bin.tar.gz.Verification (the build-env images are published out-of-band, not rebuilt per PR):
https://archive.apache.org/dist/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gzreturnsHTTP 200.SHA-512matches both the value committed inDockerfile.gcc7and Apache's published.sha512.3.9.9satisfies the FE enforcer range[3.9.0,).Release note
None
Check List (For Author)
Test
.github/workflows/code-checks.ymlexcludesdocker/compilationandDockerfiles). Correctness was verified by confirming the newarchive.apache.orgartifact URL resolves, the committedSHA-512matches Apache's published checksum, and3.9.9satisfies the FE enforcer range[3.9.0,).Behavior changed:
Does this need documentation?