• JavaFX Compiler Maven Plugin
Skip to end of metadata
Go to start of metadata

New version found at JavaFX Maven Plugin

What does it do?

The unique goal of this plugin is "compile". The plugin will compile javafx source files without interfering with the java compiler. It activates the javafxc Ant task using the Maven model to fill the classpath and other parameters. All generated class files will be generated under the standard maven dir "target/classes" and so packaged and distributed by Maven automatically.

Resources

Activating the plugin

  • Just add the following plugin to your pom.xml file:
  • And the following plugin repository to your settings.xml or pom.xml (best practice is to do it in a profile):

JavaFX dependencies has Maven2 POM declaration

To use javafx SDK jars in your project you need to declare the following dependencies in your POM file:

Standard configuration

The default source path for javafx project is: src/main/javafx and if you have resources under it you need to add in your POM:

  • No labels