Feder -Boot -Build -Bildfehler für natives BildJava

Java-Forum
Anonymous
 Feder -Boot -Build -Bildfehler für natives Bild

Post by Anonymous »

Verwenden von Spring Boot 2.6.2 mit Java17, der versucht, ein natives Bild zu erstellen, aber es fällt mit dem folgenden Fehler fehl. < /p>

Code: Select all

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]
< /code>
Ich baue es auf Windows 11-Computer mit Docker Desktop installiert < /p>
MVNW Springboot: Build-Image < /p>
[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]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post