A sample/starter project that uses the Maven build system. It uses the JavaFX Plugin to build and/or run a JavaFX JAR/app and the GluonFX Plugin to build and run a GraalVM native-image.
- NOTE
-
Building a native package with
jpackageis not yet supported with Maven. (See Issue #2.) It is supported with Gradle, however. See the Supernaut.FX Sample Gradle Project for an example. Building ajlinkimage however, is supported.
-
git clone git@github.com:SupernautApp/supernaut-fx-sample-maven.git -
cd supernaut-fx-sample-maven
-
Install Graal VM
java17version 22.0.0.2 or later (Latest GraalVM JDK 17) -
gu install native-image -
Set
GRAALVM_HOMEenvironment variable -
Install Maven. (Maven 3.8.1 or later is recommended)
If you are building a GraalVM native image with GluonFX you may need to install additional software (depending upon your platform) see the Gluon Documentation for info.