Skip to content

Instantly share code, notes, and snippets.

@renanliberato
Created January 24, 2017 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renanliberato/701400bc7216d3cac658304f19af5e9d to your computer and use it in GitHub Desktop.
Save renanliberato/701400bc7216d3cac658304f19af5e9d to your computer and use it in GitHub Desktop.
pom.xml configuration using JavaFX-Maven-Plugin

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment