I'm trying to generate AOT data for a Spring Boot 3 application. When I run mvn -Pnative native:compile
the Spring application is started using org.springframework.boot.SpringApplicationAotProcessor
. The problem is that the process doesn't quit even after the main method is finished. I copied the class to my code, using the original package, i.e. overwriting it, and added System.exit(0);
to the main method and it works. So that's a workaround but it doesn't feel right.
Asked
Active
Viewed 199 times
0

Pragmatick
- 130
- 16
-
What kind of application are you writing. Please add your dependencies and your main class. – M. Deinum Dec 19 '22 at 09:55