Skip to content

[Bug] build-env-ldb-toolchain-latest ships Maven 3.6.3 but master FE requires Maven >= 3.9.0 #62412

@jonathanhu237

Description

@jonathanhu237

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master branch
commit: bcfcef3

What's Wrong?

I encountered a build-environment mismatch when trying to build the latest Doris master branch with the recommended Docker image apache/doris:build-env-ldb-toolchain-latest.

The image currently provides Maven 3.6.3, but the current FE build requires Maven version [3.9.0,) according to fe/pom.xml.

Because of this mismatch, the build fails during the FE phase with the Maven enforcer version check error.

What You Expected?

I expected the recommended Docker image apache/doris:build-env-ldb-toolchain-latest to satisfy the current build requirements of the master branch, including the required Maven version, so that the FE build could proceed normally.

How to Reproduce?

  1. Pull the recommended latest build image:
docker pull apache/doris:build-env-ldb-toolchain-latest
  1. Start a container with this image and enter it.
  2. Check the Maven version inside the container:
mvn -version
  1. Build Doris master:
bash build.sh
  1. The build fails in the FE phase because Maven 3.6.3 does not satisfy the required version range [3.9.0,).

Anything Else?

The current Docker compilation guide maps master to apache/doris:build-env-ldb-toolchain-latest, so this image appears to be out of sync with the current FE build requirement.

Build error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce-maven-version) on project fe:
[ERROR] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion failed with message:
[ERROR] Detected Maven Version: 3.6.3 is not in the allowed range [3.9.0,).
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions