강의

멘토링

커뮤니티

Inflearn Community Q&A

soliloquiess's profile image
soliloquiess

asked

Spring for Beginners - Learn Spring Boot, Web MVC, and DB Access Technology with Code

Build and Run

빌드 질문입니다.

Written on

·

1.1K

0

C:\Users\cyh12\Downloads\hello>gradlew build

> Task :generateAot FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':generateAot'.

> Could not generate spring.factories source code

* 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

BUILD FAILED in 9s

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

gradlew build 시 이렇게 나오는데 정상인건가여?

stacktrace 뒤에 붙이고 실행해도 같은 에러 발생하네요..

javaspringMVCspring-boot

Answer 3

0

Solioquies님의 프로필 이미지
Solioquies
Questioner

혹시 이러면 성공인건가요.? 윈도우 기반  노트북에서는 안 됐는데 똑같이 조건에 같은 윈도우 기반 데스크탑에서 하니까 successful이랑 저렇게 나오네요. build.gradle에 문제가 있던건가요?

yh님의 프로필 이미지
yh
Instructor

Solioquies님 마지막은 성공이 맞습니다.

저도 정확한 원인은 모르겠지만

자바 버전이 JDK11로 정상 설치되어 있는지 확인해주세요.

java -version, javac -version으로 확인할 수 있습니다.

0

Solioquies님의 프로필 이미지
Solioquies
Questioner

plugins {
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}

group = 'hello'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

test {
useJUnitPlatform()
}

입니다. 만들떄 인텔리제이 프로에서 만들고 강의 따라했습니다.

0

yh님의 프로필 이미지
yh
Instructor

안녕하세요. Solioquies님

build.gradle 파일을 보여주시겠어요?

soliloquiess's profile image
soliloquiess

asked

Ask a question