This content originally appeared on DEV Community and was authored by özkan pakdil
Adding below to your pom xml and
<profile>
<id>native</id>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${buildtools.version}</version>
<executions>
<execution>
<id>build-native</id>
<goals>
<goal>compile-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
run command ./mvnw -Pnative package
Below you can see nice starters for different type of native binary graalvm supported projects.
JavaFX (GUI)
Spring (microservices or everything)
Quarkus (micro services)
Reference:
This content originally appeared on DEV Community and was authored by özkan pakdil

özkan pakdil | Sciencx (2024-11-12T18:20:09+00:00) Native Image Quick Reference — GraalVM for JDK 23 – graalvm. Retrieved from https://www.scien.cx/2024/11/12/native-image-quick-reference-graalvm-for-jdk-23-graalvm/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.