티스토리 뷰

반응형

java17과 함께 스프링 부트 2.6.2를 사용하여 기본 이미지를 생성하려고 시도하지만 아래 오류와 함께 실패합니다.

도커 데스크탑이 설치된 Windows 11 시스템에서 빌드 중입니다.

mvnw 스프링 부트:빌드 이미지

[INFO]     [creator]     [/layers/paketo-buildpacks_native-image/native-image/com.example.shoppinglist.ShoppinglistApplication:204]    classlist:  10,121.42 ms,  1.20 GB
[INFO]     [creator]     20:58:34.611 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider
[INFO]     [creator]     [/layers/paketo-buildpacks_native-image/native-image/com.example.shoppinglist.ShoppinglistApplication:204]        (cap):     773.97 ms,  1.70 GB
[INFO]     [creator]     Warning: Could not register org.springframework.boot.actuate.web.mappings.reactive.RequestMappingConditionsDescription: allDeclaredConstructors for reflection. Reason: java.lang.NoClassDefFoundError: org/springframework/web/reactive/result/method/RequestMappingInfo.
[INFO]     [creator]     Warning: Could not register org.springframework.boot.actuate.web.mappings.reactive.RequestMappingConditionsDescription$MediaTypeExpressionDescription: allDeclaredConstructors for reflection. Reason: java.lang.NoClassDefFoundError: org/springframework/web/reactive/result/condition/MediaTypeExpression.
[INFO]     [creator]     [/layers/paketo-buildpacks_native-image/native-image/com.example.shoppinglist.ShoppinglistApplication:204]        setup:   3,523.59cation:204]        setup:   3,523.59 ms,  1.70 GB
[INFO]     [creator]     Warning: Could not register complete reflection metadata for org.springframework.boot.actuate.web.mappings.reactive.RequestMappingConditionsDescription. Reason(s): java.lang.NoClassDefFoundError: org/springframework/web/reactive/result/method/RequestMappingInfo
[INFO]     [creator]     Warning: Could not register complete reflection metadata for org.springframework.boot.actuate.web.mappings.reactive.RequestMappingConditionsDescription$MediaTypeExpressionDescription. Reason(s): java.lang.NoClassDefFoundError: org/springframework/web/reactive/result/condition/MediaTypeExpression
[INFO]     [creator]     Error: Image build request failed with exit status 137
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to contribute native-image layer
[INFO]     [creator]     error running build
[INFO]     [creator]     exit status 137
[INFO]     [creator]     ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:47 min
[INFO] Finished at: 2022-01-19T02:30:19+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.6.2:build-image (default-cli) on project shoppinglist: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.6.2:build-image failed: Builder lifecycle 'creator' failed with status code 145 -> [Help 1]
[ERROR]

 

 

네이티브 이미지를 생성하는 것은 많은 메모리를 소모합니다. 이 메시지는 시스템 메모리가 부족할 때 나타납니다.

이 공식 문서에서 이 오류와 관련된 몇 가지 팁과 트릭을 찾을 수 있습니다.

https://docs.spring.io/spring-native/docs/0.11.1/reference/htmlsingle/#_out_of_memory_error_when_building_the_native_image

반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함