GraalVM Native Build Tools - for Maven

3
0
Send lab feedback

Description

Learn how to integrate GraalVM Native Image into your Maven workflow. In this lab you will use the Maven plugin for Native Image building, learn how to run the Java agent to generate reflection configuration with Maven, and how to run your unit tests as a native executable.

The learning objective for this lab are:

  • Use the GraalVM Native Build Tools for Maven to build, test, and run a demo application.
  • Use the plugin to run unit tests on your native executable.
  • Use the plugin to create the reflection configuration for your native executable.

GraalVM Native Image makes it possible to compile any Java application ahead-of-time into a native executable that starts almost instantaneously, provides peak performance with no warmup, and requires less memory and less CPU. It's perfect for containerized workloads and microservices—which is why it has been embraced by Micronaut, Spring Boot, Helidon, and Quarkus.

Expected Time to Complete

45 mins

Intended Audience

Application Developer, DevOps Engineer

Level

Beginner

Products/Services

Oracle GraalVM, Oracle Cloud Infrastructure, Oracle Linux

Technology

Native Image, Java, Compute

Changelog

  • November 2021 - Initial version
  • May 2025 - Update to Oracle GraalVM for JDK 24

Acknowledgements

  • Owners - Kristian Foster
  • Contributors - Olga Gupalo
Difficulty
Intermediate
Time Limit
45 minutes


Views
4494

Students
142


Authors
GraalVM
GraalVM @ Oracle Labs



Topics
GraalVMNative ImageDockerJavaMicro-services
SSR