[vscode] error : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile

이로률·2023년 5월 1일
1

error report

목록 보기
6/11
post-thumbnail

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project coffee: Fatal error compiling: error: release version 17 not supported -> [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

프로젝트는 Java 17을 사용하고 있으나, Maven Compiler Plugin이 Java 17을 지원하지 않아 발생하는 에러
해결 방법은 프로젝트와 자바 버전을 맞춰줘야함
17 -> 11로 자바 변경을 해주고 프로젝트 버전 자체도 11로 바꿔줌.
이 때 스프링부트 버전도 2.x.x 버전으로 변경해줬다
스프링부트 3.x.x 버전 부터는 무조건 자바 17버전 사용

profile
💻🧐💗💝💘💖

0개의 댓글