Skip to content

执行mvn test遇到报错,这要怎么解决 #6579

@dabao1990

Description

@dabao1990

1、spack install --overwrite --keep-stage --no-checksum -y druid@1.2.27 openjdk@17.20 maven@3.6.3
2、cd druid@1.2.27
3、mvn test

报错信息
[INFO] Results:
[INFO]
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] druid-parent 1.2.27 ................................ SUCCESS [ 15.177 s]
[INFO] druid 1.2.27 ....................................... SUCCESS [05:18 min]
[INFO] druid-spring-boot-starter 1.2.27 ................... SUCCESS [ 17.646 s]
[INFO] druid-wrapper 1.2.27 ............................... SUCCESS [ 0.215 s]
[INFO] druid-demo-petclinic 2.7.18 ........................ SKIPPED
[INFO] druid-spring-boot-3-starter 1.2.27 ................. FAILURE [ 10.360 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:01 min (Wall Clock)
[INFO] Finished at: 2025-12-26T15:49:36+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (java-compile) on project druid-spring-boot-3-starter: Compilation failure
[ERROR] /home/stage/root/spack-stage-druid-1.2.27-w4gnadixhvjq3fwcwssbzkaqxkqrdvl2/spack-src/druid-spring-boot-3-starter/src/main/java/module-info.java:[11,14] module not found: druid
[ERROR]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :druid-spring-boot-3-starter

cat /etc/os-release
NAME="openEuler"
VERSION="22.03 (LTS-SP4)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP4)"
ANSI_COLOR="0;31"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions