Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: add native-image.properties to archetypes #7717

Closed
tomas-langer opened this issue Oct 4, 2023 · 1 comment · Fixed by #7731
Closed

4.x: add native-image.properties to archetypes #7717

tomas-langer opened this issue Oct 4, 2023 · 1 comment · Fixed by #7731
Assignees
Milestone

Comments

@tomas-langer
Copy link
Member

With the new version of graalVM native-image, we need to register all bean types to be initialized at build time (as they end up in the image heap).
To support this, we should generated the following file:
src/main/resources/META-INF/groupId/artifactId/native-image.properties
with the following content:

Args=--initialize-at-build-time=packageName

groupId: maven groupId
artifactId: maven artifactId
packageName: package where we generate beans (such as JAX-RS resources), if multiple packages, then the top most package

@barchetta
Copy link
Member

native-image.properties appears to be in the wrong location. See #7824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants