Add support for compiling to native images #22488
Labels
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
theme: gradle
theme: maven
$500
https://www.jhipster.tech/bug-bounties/
Milestone
Overview of the feature request
Now that we're using Spring Boot 3, it should be possible to compile to a native image. Unfortunately, we don't inherit from
spring-boot-starter-parent
, so I had to copy itsnative
andnativeTest
profiles into mypom.xml
. I also added the following to build > plugins:When I try to build with
mvn -Pnative native:compile
, I get all kinds of errors from the modernizer plugin:If I remove the modernizer plugin, the
TechnicalStructureTest
test fails:If I skip tests with
mvn -Pnative native:compile -DskipTests
, it compiles successfully.However, it does not start successfully:
If I remove all the
jhipster.*
properties fromapplication-dev.yml
, I get a bit further, but it still doesn't start.Motivation for or Use Case
We should support GraalVM Native Images by default.
JDL used
The text was updated successfully, but these errors were encountered: