Open sergey-morenets opened 8 months ago
Assuming that /opt/target/demo-0.0.1-SNAPSHOT.jar
is a Spring Boot uber jar, the native image compiler will not be able to find the classes that it contains as they're located in BOOT-INF/classes
, not the root of the jar.
Have you considered using or taking inspiration from the native
profile that's provided by spring-boot-starter-parent
?
Describe the bug
Hi
We couldn't build GraalVM native image for sample Spring Boot application (we used 3.2.0 RC1 or SNAPSHOT versions) and always received an error "Error: Main entry point class 'com.example.demo.DemoApplication' neither found" although this class is entry point and exists in the project.
To Reproduce
Here's plugin configuration:
And here's instructions in Dockerfile:
Logs
System Info (please complete the following information):