- GraalVM/Native Image
- ORM
- Eclipse Link
https://www.graalvm.org/22.2/reference-manual/native-image/guides/use-native-image-maven-plugin/
If you are in ubuntu/linux install before. To avoid super stranger errors of graalvm/native-image
apt-get install build-essential zlib1g-dev
Please before install sdkman
sdkman install (sometimes later of install your need close and open your terminal or full vscode restart to sdk command can reconigzed)
curl -s "https://get.sdkman.io" | bash
get the sdkman version
sdk version
install java 17 graalvm distro
sdk install java 22.3.r17-grl
set default java 17 graalvm distro
sdk default java 22.3.r17-grl
install maven (Last version available)
sdk install maven
Compile to standard jvm.
mvn install
mvn clean package
java -jar target/jpaEntityManager.jar
java -jar target/jpaEntityManager-jar-with-dependencies.jar
mvn clean package
mvn -Pnative -Dagent exec:exec@java-agent
target/native/agent-output/main/
mvn -Pnative -Dagent package
target/jpaEntityManager
Dependencies tree
mvn compile dependency:tree
Version
mvn --version