해결된 질문
작성
·
227
0
ubuntu@ip-172-31-86-200:~/memberCertification$ ./gradlew clean build
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 15s
8 actionable tasks: 8 executed
ubuntu@ip-172-31-86-200:~/memberCertification$ ./gradlew clean build
> Task :test
MemberCertificationApplicationTests > contextLoads() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:180
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1773
Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:276
Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:191
1 test completed, 1 failed
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/ubuntu/memberCertification/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 15s
8 actionable tasks: 8 executed
ubuntu@ip-172-31-86-200:~/memberCertification$ ./gradlew clean build
> Task :test
MemberCertificationApplicationTests > contextLoads() FAILED
java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:180
Caused by: org.springframework.beans.factory.BeanCreationException at AbstractAutowireCapableBeanFactory.java:1773
Caused by: org.hibernate.service.spi.ServiceException at AbstractServiceRegistryImpl.java:276
Caused by: org.hibernate.HibernateException at DialectFactoryImpl.java:191
1 test completed, 1 failed
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/ubuntu/memberCertification/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 14s
8 actionable tasks: 8 executed
구글에 검색해본 결과, java: error: invalid flag: --warning-mode=all을 하면 된다는 글을 보고 Preferences > Compiler > java Compiler에 --warning-mode all --stacktrace 입력을 하고 실행을 해봤습니다.
java: error: invalid flag: --warning-mode=all가 발생하며 실행이 되지 않습니다. 어떻게 해야 에러를 고칠 수 있을까요 ?
답변 1
0
안녕하세요 JJEONG님!
로컬 환경에서 해당 스프링 프로젝트를 실행시켜도 에러가 발생하는 지 확인 한 번 해보시면 좋을 것 같습니다!
그리고 아래 명령어로 직접 입력해서 실행시킨 뒤에도 에러가 발생하시면 다시 또 질문 남겨주시기 바랍니다.
./gradlew clean build --warning-mode=all --stacktrace
질문 남겨주실 때 가능하다면 Github에 코드 올리셔서 링크 걸어주시면,
clone 받아서 제 컴퓨터 환경에서도 실행 한 번 시켜볼게요:)