springboot 3.0.0 RC1 use cmd "mvn -Pnative spring-boot:build-image" found error
mvn spring-boot:build-image -> success
mvn -Pnative spring-boot:build-image -> error
C:\soft\graalvm-ce-java17-22.2.0\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Downloads\next-boot-maven -Dmaven.home=C:\Users\Administrator\.m2\wrapper\dists\apache-maven-3.8.6-bin\1ks0nkde5v1pk9vtc31i9d0lcd\apache-maven-3.8.6 -Dclassworlds.conf=C:\Users\Administrator\.m2\wrapper\dists\apache-maven-3.8.6-bin\1ks0nkde5v1pk9vtc31i9d0lcd\apache-maven-3.8.6\bin\m2.conf "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\lib\idea_rt.jar=51761:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\Administrator\.m2\wrapper\dists\apache-maven-3.8.6-bin\1ks0nkde5v1pk9vtc31i9d0lcd\apache-maven-3.8.6\boot\plexus-classworlds-2.6.0.jar;C:\Users\Administrator\.m2\wrapper\dists\apache-maven-3.8.6-bin\1ks0nkde5v1pk9vtc31i9d0lcd\apache-maven-3.8.6\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2022.2.3 -DskipTests=true -Pnative spring-boot:build-image
[INFO] Scanning for projects...
[INFO] Found GraalVM installation from JAVA_HOME variable.
[INFO]
[INFO] --------------< com.future.change.smart:next-boot-maven >---------------
[INFO] Building next-boot-maven 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:3.0.0-RC1:build-image (default-cli) > package @ next-boot-maven >>>
[INFO]
[INFO] --- native-maven-plugin:0.9.16:add-reachability-metadata (add-reachability-metadata) @ next-boot-maven ---
[INFO] [graalvm reachability metadata repository for ch.qos.logback:logback-classic:1.4.4]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for ch.qos.logback:logback-classic:1.4.4]: Configuration directory is ch.qos.logback\logback-classic\1.4.1
[INFO] [graalvm reachability metadata repository for org.apache.tomcat.embed:tomcat-embed-core:10.0.27]: Configuration directory not found. Trying latest version.
[INFO] [graalvm reachability metadata repository for org.apache.tomcat.embed:tomcat-embed-core:10.0.27]: Configuration directory is org.apache.tomcat.embed\tomcat-embed-core\10.0.20
[INFO]
[INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ next-boot-maven ---
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ next-boot-maven ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ next-boot-maven ---
[INFO] skip non existing resourceDirectory C:\Users\Administrator\Downloads\next-boot-maven\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ next-boot-maven ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ next-boot-maven ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- spring-boot-maven-plugin:3.0.0-RC1:process-aot (process-aot) @ next-boot-maven ---
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.0.0-RC1)
2022-10-26T16:47:05.728+08:00 INFO 20604 --- [ main] c.f.c.s.n.NextBootMavenApplication : Starting NextBootMavenApplication using Java 17.0.4 on DESKTOP-1RFMRCD with PID 20604 (C:\Users\Administrator\Downloads\next-boot-maven\target\classes started by Administrator in C:\Users\Administrator\Downloads\next-boot-maven)
2022-10-26T16:47:05.733+08:00 INFO 20604 --- [ main] c.f.c.s.n.NextBootMavenApplication : No active profile set, falling back to 1 default profile: "default"
[INFO]
[INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ next-boot-maven ---
[INFO] Building jar: C:\Users\Administrator\Downloads\next-boot-maven\target\next-boot-maven-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:3.0.0-RC1:repackage (repackage) @ next-boot-maven ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] <<< spring-boot-maven-plugin:3.0.0-RC1:build-image (default-cli) < package @ next-boot-maven <<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:3.0.0-RC1:build-image (default-cli) @ next-boot-maven ---
[INFO] Building image 'docker.io/library/next-boot-maven:0.0.1-SNAPSHOT'
[INFO]
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 100%
[INFO] > Pulled builder image 'paketobuildpacks/builder@sha256:12b0610e4359bb8bc760ce24e4454d647db44e19c4868f64706d7290db923cc9'
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 100%
[INFO] > Pulled run image 'paketobuildpacks/run@sha256:0647ce29d54edf980c70dbe31f30546b0ec44ef12d7def54d7576589e8d112a8'
[INFO] > Executing lifecycle version v0.14.3
[INFO] > Using build cache volume 'pack-cache-7279dd6c526e.build'
[INFO]
[INFO] > Running creator
[INFO] [creator] Restoring data for SBOM from previous image
[INFO] [creator] ===> DETECTING
[INFO] [creator] 6 of 14 buildpacks participating
[INFO] [creator] paketo-buildpacks/ca-certificates 3.4.0
[INFO] [creator] paketo-buildpacks/bellsoft-liberica 9.9.0
[INFO] [creator] paketo-buildpacks/syft 1.21.0
[INFO] [creator] paketo-buildpacks/executable-jar 6.5.0
[INFO] [creator] paketo-buildpacks/spring-boot 5.19.0
[INFO] [creator] paketo-buildpacks/native-image 5.5.0
[INFO] [creator] ===> RESTORING
[INFO] [creator] Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/syft:syft" from cache
[INFO] [creator] Restoring metadata for "paketo-buildpacks/spring-boot:spring-cloud-bindings" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
[INFO] [creator] Restoring metadata for "paketo-buildpacks/spring-boot:helper" from app image
[INFO] [creator] Restoring data for "paketo-buildpacks/syft:syft" from cache
[INFO] [creator] Restoring data for SBOM from cache
[INFO] [creator] ===> BUILDING
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for CA Certificates 3.4.0
[INFO] [creator] https://github.com/paketo-buildpacks/ca-certificates
[INFO] [creator] Launch Helper: Reusing cached layer
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for BellSoft Liberica 9.9.0
[INFO] [creator] https://github.com/paketo-buildpacks/bellsoft-liberica
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
[INFO] [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
[INFO] [creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE
[INFO] [creator] $BP_JVM_VERSION 17.* the Java version
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
[INFO] [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
[INFO] [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
[INFO] [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
[INFO] [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
[INFO] [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
[INFO] [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
[INFO] [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
[INFO] [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
[INFO] [creator] $BPL_JMX_PORT 5000 configure the JMX port
[INFO] [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
[INFO] [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
[INFO] [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
[INFO] [creator] $JAVA_TOOL_OPTIONS the JVM launch flags
[INFO] [creator] Using Java version 17.* from BP_JVM_VERSION
[INFO] [creator] BellSoft Liberica NIK 17.0.4: Contributing to layer
[INFO] [creator] Downloading from https://download.bell-sw.com/vm/22.2.0/bellsoft-liberica-vm-core-openjdk17.0.4.1+1-22.2.0+3-linux-amd64.tar.gz
[INFO] [creator] Verifying checksum
[INFO] [creator] Expanding to /layers/paketo-buildpacks_bellsoft-liberica/native-image-svm
[INFO] [creator] Adding 127 container CA certificates to JVM truststore
[INFO] [creator] Writing env.build/JAVA_HOME.override
[INFO] [creator] Writing env.build/JDK_HOME.override
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Syft 1.21.0
[INFO] [creator] https://github.com/paketo-buildpacks/syft
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Executable JAR 6.5.0
[INFO] [creator] https://github.com/paketo-buildpacks/executable-jar
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Writing env.build/CLASSPATH.prepend
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Spring Boot 5.19.0
[INFO] [creator] https://github.com/paketo-buildpacks/spring-boot
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_SPRING_CLOUD_BINDINGS_DISABLED false whether to contribute Spring Boot cloud bindings support
[INFO] [creator] Launch Configuration:
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_DISABLED false whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] $BPL_SPRING_CLOUD_BINDINGS_ENABLED true Deprecated - whether to auto-configure Spring Boot environment properties from bindings
[INFO] [creator] Class Path: Contributing to layer
[INFO] [creator] Writing env.build/CLASSPATH.append
[INFO] [creator] Writing env.build/CLASSPATH.delim
[INFO] [creator] Image labels:
[INFO] [creator] org.opencontainers.image.title
[INFO] [creator] org.opencontainers.image.version
[INFO] [creator] org.springframework.boot.version
[INFO] [creator]
[INFO] [creator] Paketo Buildpack for Native Image 5.5.0
[INFO] [creator] https://github.com/paketo-buildpacks/native-image
[INFO] [creator] Build Configuration:
[INFO] [creator] $BP_BINARY_COMPRESSION_METHOD Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`
[INFO] [creator] $BP_NATIVE_IMAGE true enable native image build
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE a file with arguments to pass to the native-image command
[INFO] [creator] $BP_NATIVE_IMAGE_BUILT_ARTIFACT the built application artifact explicitly, required if building from a JAR
[INFO] [creator] Native Image: Contributing to layer
[INFO] [creator] Executing native-image -H:+StaticExecutableWithDynamicLibC -H:Name=/layers/paketo-buildpacks_native-image/native-image/com.future.change.smart.nextbootmaven.NextBootMavenApplication -cp /workspace:/workspace/BOOT-INF/classes:/workspace/BOOT-INF/lib/spring-boot-3.0.0-RC1.jar:/workspace/BOOT-INF/lib/spring-boot-autoconfigure-3.0.0-RC1.jar:/workspace/BOOT-INF/lib/logback-classic-1.4.4.jar:/workspace/BOOT-INF/lib/logback-core-1.4.4.jar:/workspace/BOOT-INF/lib/log4j-to-slf4j-2.19.0.jar:/workspace/BOOT-INF/lib/log4j-api-2.19.0.jar:/workspace/BOOT-INF/lib/jul-to-slf4j-2.0.3.jar:/workspace/BOOT-INF/lib/jakarta.annotation-api-2.0.0.jar:/workspace/BOOT-INF/lib/snakeyaml-1.33.jar:/workspace/BOOT-INF/lib/jackson-databind-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/jackson-annotations-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/jackson-core-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/jackson-datatype-jdk8-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/jackson-datatype-jsr310-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/jackson-module-parameter-names-2.14.0-rc2.jar:/workspace/BOOT-INF/lib/tomcat-embed-core-10.0.27.jar:/workspace/BOOT-INF/lib/tomcat-embed-el-10.0.27.jar:/workspace/BOOT-INF/lib/tomcat-embed-websocket-10.0.27.jar:/workspace/BOOT-INF/lib/spring-web-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-beans-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/micrometer-observation-1.10.0-RC1.jar:/workspace/BOOT-INF/lib/micrometer-commons-1.10.0-RC1.jar:/workspace/BOOT-INF/lib/spring-webmvc-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-aop-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-context-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-expression-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/slf4j-api-2.0.3.jar:/workspace/BOOT-INF/lib/spring-core-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-jcl-6.0.0-RC2.jar:/workspace/BOOT-INF/lib/spring-boot-jarmode-layertools-3.0.0-RC1.jar com.future.change.smart.nextbootmaven.NextBootMavenApplication
[INFO] [creator] ================================================================================
[INFO] [creator] GraalVM Native Image: Generating '/layers/paketo-buildpacks_native-image/native-image/com.future.change.smart.nextbootmaven.NextBootMavenApplication' (static executable)...
[INFO] [creator] ================================================================================
[INFO] [creator] [1/7] Initializing... (5.8s @ 0.15GB)
[INFO] [creator] Version info: 'GraalVM 22.2.0 Java 17 CE'
[INFO] [creator] Java version info: '17.0.4.1+1-LTS'
[INFO] [creator] C compiler: gcc (linux, x86_64, 7.5.0)
[INFO] [creator] Garbage collector: Serial GC
[INFO] [creator] 1 user-specific feature(s)
[INFO] [creator] - org.springframework.aot.nativex.feature.PreComputeFieldFeature
[INFO] [creator] Processing of field org.springframework.core.NativeDetector#imageCode skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.KotlinDetector#kotlinPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.KotlinDetector#kotlinReflectPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.format.support.DefaultFormattingConversionService#jsr354Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.context.annotation.AnnotationConfigUtils#jakartaAnnotationsPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.context.annotation.AnnotationConfigUtils#jsr250Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.context.annotation.AnnotationConfigUtils#jpaPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.context.annotation.CommonAnnotationBeanPostProcessor#jndiPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.boot.logging.java.JavaLoggingSystem$Factory#PRESENT skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.boot.logging.logback.LogbackLoggingSystem$Factory#PRESENT skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#romePresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jaxb2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2XmlPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2SmilePresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2CborPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#gsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jsonbPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationCborPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationJsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationProtobufPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.boot.logging.log4j2.Log4J2LoggingSystem$Factory#PRESENT skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.view.InternalResourceViewResolver#jstlPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jaxb2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2XmlPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2SmilePresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#gsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jsonbPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationCborPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationJsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationProtobufPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.context.support.StandardServletEnvironment#jndiPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.context.event.ApplicationListenerMethodAdapter#reactiveStreamsPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.context.support.WebApplicationContextUtils#jsfPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.context.request.RequestContextHolder#jsfPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.boot.autoconfigure.web.format.WebConversionService#JSR_354_PRESENT skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#romePresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jaxb2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jackson2Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jackson2XmlPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jackson2SmilePresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jackson2CborPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#gsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#jsonbPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#kotlinSerializationCborPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#kotlinSerializationJsonPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.client.RestTemplate#kotlinSerializationProtobufPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.ReactiveAdapterRegistry#reactorPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.ReactiveAdapterRegistry#rxjava3Present skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.ReactiveAdapterRegistry#kotlinCoroutinesPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.core.ReactiveAdapterRegistry#mutinyPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] Processing of field org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler#isContextPropagationPresent skipped due the following error : org.slf4j.spi.SLF4JServiceProvider: ch.qos.logback.classic.spi.LogbackServiceProvider not a subtype
[INFO] [creator] Processing of field org.springframework.web.servlet.support.RequestContext#jstlPresent skipped due the following error : org/graalvm/nativeimage/hosted/FieldValueTransformer
[INFO] [creator] [2/7] Performing analysis... [*] (36.8s @ 1.16GB)
[INFO] [creator] 15,025 (93.17%) of 16,126 classes reachable
[INFO] [creator] 24,648 (68.21%) of 36,136 fields reachable
[INFO] [creator] 71,051 (68.61%) of 103,557 methods reachable
[INFO] [creator] 773 classes, 145 fields, and 2,674 methods registered for reflection
[INFO] [creator]
[INFO] [creator] Fatal error: java.lang.TypeNotPresentException: Type kotlinx.serialization.BinaryFormat not present
[INFO] [creator] at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
[INFO] [creator] at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
[INFO] [creator] at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
[INFO] [creator] at java.base/sun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator.reifyBounds(LazyReflectiveObjectGenerator.java:65)
[INFO] [creator] at java.base/sun.reflect.generics.reflectiveObjects.TypeVariableImpl.getBounds(TypeVariableImpl.java:125)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:521)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:529)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionDataBuilder.registerTypesForClass(ReflectionDataBuilder.java:412)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionDataBuilder.processMethodMetadata(ReflectionDataBuilder.java:267)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionDataBuilder.duringAnalysis(ReflectionDataBuilder.java:187)
[INFO] [creator] at com.oracle.svm.reflect.hosted.ReflectionFeature.duringAnalysis(ReflectionFeature.java:238)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:734)
[INFO] [creator] at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:78)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:734)
[INFO] [creator] at com.oracle.graal.pointsto.PointsToAnalysis.runAnalysis(PointsToAnalysis.java:755)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:731)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:564)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:521)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:407)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:585)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
[INFO] [creator] at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:615)
[INFO] [creator] Caused by: java.lang.ClassNotFoundException: kotlinx.serialization.BinaryFormat
[INFO] [creator] at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[INFO] [creator] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[INFO] [creator] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[INFO] [creator] at java.base/java.lang.Class.forName0(Native Method)
[INFO] [creator] at java.base/java.lang.Class.forName(Class.java:467)
[INFO] [creator] at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
[INFO] [creator] ... 21 more
[INFO] [creator] --------------------------------------------------------------------------------
[INFO] [creator] 2.8s (6.4% of total time) in 23 GCs | Peak RSS: 5.96GB | CPU load: 6.61
[INFO] [creator] ================================================================================
[INFO] [creator] Failed generating '/layers/paketo-buildpacks_native-image/native-image/com.future.change.smart.nextbootmaven.NextBootMavenApplication' after 42.9s.
[INFO] [creator] Error: Image build request failed with exit status 1
[INFO] [creator] unable to invoke layer creator
[INFO] [creator] unable to contribute native-image layer
[INFO] [creator] error running build
[INFO] [creator] exit status 1
[INFO] [creator] ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:38 min
[INFO] Finished at: 2022-10-26T16:48:41+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-RC1:build-image (default-cli) on project next-boot-maven: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-RC1:build-image failed: Builder lifecycle 'creator' failed with status code 51 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Process finished with exit code 1
Comment From: wilkinsona
Thanks for trying the RC.
Spring Boot 3.0.0-RC1 requires Graal 22.3. You can configure that with Buildpacks by customizing the version of the Bellsoft Liberica buildpack:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<buildpacks>
<buildpack>gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea</buildpack>
<buildpack>gcr.io/paketo-buildpacks/java-native-image</buildpack>
</buildpacks>
</image>
</configuration>
</plugin>
</plugins>
</build>
If you use https://start.spring.io to create a project for you, it will provide this configuration out of the box. Here's a pre-configured link that will provide a project with the necessary configuration in pom.xml. This configuration won't be necessary once buildpacks have been updated to use Graal 22.3 by default.
Comment From: scstc
Invalid buildpack reference 'gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea'
Comment From: wilkinsona
Strange. It should work. Here's some output from a local build I've just run showing that buildpack being pulled successfully:
[INFO] --- spring-boot-maven-plugin:3.0.0-RC1:build-image (default-cli) @ demo ---
[INFO] Building image 'docker.io/library/demo:0.0.1-SNAPSHOT'
[INFO]
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 1%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 7%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 10%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 14%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 16%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 20%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 22%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 24%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 27%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 29%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 34%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 38%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 49%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 67%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 79%
[INFO] > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' 100%
[INFO] > Pulled builder image 'paketobuildpacks/builder@sha256:12b0610e4359bb8bc760ce24e4454d647db44e19c4868f64706d7290db923cc9'
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 12%
[INFO] > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' 100%
[INFO] > Pulled run image 'paketobuildpacks/run@sha256:0647ce29d54edf980c70dbe31f30546b0ec44ef12d7def54d7576589e8d112a8'
[INFO] > Pulling buildpack image 'gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea' 100%
[INFO] > Pulled buildpack image 'gcr.io/paketo-buildpacks/bellsoft-liberica@sha256:32e69e3fcc17725ed8a7bddd9d2881a0f1019354a0e653521dac55898c0e8c36'
If I delete the image, it can then be retrieved again using docker pull:
$ docker pull gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea
9.9.0-ea: Pulling from paketo-buildpacks/bellsoft-liberica
06c8491f348e: Pull complete
Digest: sha256:32e69e3fcc17725ed8a7bddd9d2881a0f1019354a0e653521dac55898c0e8c36
Status: Downloaded newer image for gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea
gcr.io/paketo-buildpacks/bellsoft-liberica:9.9.0-ea
Perhaps there's a problem with your local docker configuration making images from gcr.io unavailable?