petclinic에서 ./mvnw package 실행시 surfire에서 오류가 뜰 때,
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.226 s
[INFO] Finished at: 2019-07-12T09:29:41+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project demo: There are test failures.
[ERROR]
[ERROR] Please refer to D:\mine\demosfsaf\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] There was an error in the forked process
[ERROR] com/example/demo/DemoApplicationTests has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime onl
y recognizes class file versions up to 52.0
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] com/example/demo/DemoApplicationTests has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime onl
y recognizes class file versions up to 52.0
pom.xml에서 surfire의 버전을 바꿔주면 된다.
2.19.1로 변경 전에 2.20.2로 설정되어 있었는데, 2.20.2에서는 호환이 안되는건지 2.19.1로 변경 후에는 오류가 수정되었다!
'Programming > Java' 카테고리의 다른 글
[Spring Framework] IOC Container (0) | 2020.12.06 |
---|---|
[Spring Framework] AutoWired (0) | 2020.12.06 |
[Spring Framework] 스프링 소개 (0) | 2020.12.02 |
[petclinic] PSA (0) | 2020.11.28 |
[petclinic] AOP 소개 (0) | 2020.11.28 |
댓글