[Native Image] springboot3.0.6 cloud 2022.0.2 graalvmce 17.0.9 linux error:No qualify bean of type com.netflix.discovery.Eureka available
Describe the Issue
native-maven-build 0.9.23
only use spring-boot-starter-web & spring-cloud-starter-netflix-eureka-client
jar run ok with agent tracing
mvn spring-boot:process-aot --OK
mvn -Pnative native:build --OK
execute native target/bin --- failed
Using the latest version of GraalVM can resolve many issues.
- [ ] I tried with the latest version of GraalVM.
GraalVM Version
graalvmce 17.0.9
Operating System and Version
linux centos7
Troubleshooting Confirmation
- [ ] I tried the suggestions in the troubleshooting guide.
Run Command
native run failed
Expected Behavior
native run ok and eureka register success
Actual Behavior
NoSuchBeanDefinitionException No qualify bean of type com.netflix.discovery.Eureka available
Steps to Reproduce
jar run ok with agent tracing
mvn spring-boot:process-aot
mvn -Pnative native:build
execute native target/bin
Additional Context
No response
Run-Time Log Output and Error Messages
No response
when build ,some error message:
download failed from https://repo1.maven.org/maven2/org/graalvm/buildtools/graalvm-reachability-metadata/0.9.23/graalvm-reachability-metadata-0.9.23-repository.zip
try to build success, the error has occurred
Hi @enderwsp,
You seem to be using an old version of GraalVM, could you please try using the latest version which you can find here: https://github.com/graalvm/graalvm-ce-builds/releases/
change to command : mvn clean native:compile -Pnative
native bin run successfully