강의

멘토링

로드맵

Inflearn brand logo image

인프런 커뮤니티 질문&답변

제트브레인님의 프로필 이미지
제트브레인

작성한 질문수

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

주문 기능 테스트

그레이들 오류.. ?

작성

·

6.4K

0

Testing started at 1:55 오전 ...

> Task :cleanTest UP-TO-DATE

> Task :compileJava FAILED

Errors occurred while build effective model from /Users/user/study/jpashop/caches/modules-2/files-2.1/javax.activation/javax.activation-api/1.2.0/1aa9ef58e50ba6868b2e955d61fcd73be5b4cea5/javax.activation-api-1.2.0.pom:

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':compileJava'.

> java.lang.NullPointerException (no error message)

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

Use '--warning-mode all' to show the individual deprecation warnings.

See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 614ms

2 actionable tasks: 1 executed, 1 up-to-date

갑자기 주문 취소를 만들던 도중 에러가 발생이 되어 
봉착 되었습니다 ... 
해결책이 있을까요 .. ? 그레이들 7.0 버전에 호환되는 setting 을 다시 해줘야 하는걸까요? 

답변 2

0

김영한님의 프로필 이미지
김영한
지식공유자

만약 6.0.1에서 문제가 발생하면, 우선 학습을 진행하는게 중요하니 다음 명령어로 5.6으로 다운그레이드도 고려해봐주세요^^

./gradlew wrapper --gradle-version 5.6

0

김영한님의 프로필 이미지
김영한
지식공유자

안녕하세요 신현기님

gradle 6.0.1 버전이시네요. 저도 같은 버전으로 테스트를 해보았는데, 정상동작합니다.

오류 메시지를 보면 다음 파일에 문제가 있어 보입니다.

Errors occurred while build effective model from /Users/user/study/jpashop/caches/modules-2/files-2.1/javax.activation/javax.activation-api/1.2.0/1aa9ef58e50ba6868b2e955d61fcd73be5b4cea5/javax.activation-api-1.2.0.pom:

caches 폴더 자체를 삭제하고 다시한번 시도해보세요.

그래도 만약 안되면 답글 주세요 :)

제트브레인님의 프로필 이미지
제트브레인

작성한 질문수

질문하기