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
jpackage
is 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 ajlink
image however, is supported.
-
git clone [email protected]:SupernautApp/supernaut-fx-sample-maven.git
-
cd supernaut-fx-sample-maven
-
Install Graal VM
java17
version 22.0.0.2 or later (Latest GraalVM JDK 17) -
gu install native-image
-
Set
GRAALVM_HOME
environment 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.