Using this pom.xml configuration, it is just needed to run "mvn jfx:native" to build your JavaFX application bundled with the current JRE in use.
The application will be outputed to ./target/jfx/native
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>GROUPID</groupId> | |
| <artifactId>APPLICATION</artifactId> | |
| <version>1.0</version> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>com.zenjava</groupId> | |
| <artifactId>javafx-maven-plugin</artifactId> | |
| <version>8.6.0</version> | |
| <configuration> | |
| <mainClass>MAINCLASS</mainClass> | |
| <vendor>VENDOR</vendor> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |