Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project testmocks: Fatal error compiling #20937
Answered
by
YANGJINJUE
YANGJINJUE
asked this question in
Q&A
Search before asking
Versionmacos m1 12.6.6 Minimal reproduce step./mvnw package -Dmaven.test.skip What did you expect to see?build success What did you see instead?use jdk17, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project testmocks: Fatal error compiling: 错误: 不支持发行版本 1.8 -> [Help 1] Anything else?No response Are you willing to submit a PR?
|
Answered by
YANGJINJUE
Aug 8, 2023
Replies: 3 comments 1 reply
|
Do you use Java 1.8? |
0 replies
java version "17.0.2" 2022-01-18 LTS |
0 replies
|
I can build from source on master. This is likely an environment issue.
So when you execute the command, it resolves to JDK 1.8. Please check your environment or provide complete build log. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The two environment variables, maven.compiler.target and maven.compiler.source, will be overridden by my local ~/.m2/settings.xml file. This issue has been resolved, and I am not using my local settings.xml anymore.