This Maven plugin can be used to compile JavaFX source files.
<build>
<plugins>
<plugin>
<groupId>org.easytesting</groupId>
<artifactId>javafxc-maven-plugin</artifactId>
<version>1.0b1</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>The listing above will:
For example, if we execute "mvn test" both JavaFX sources and test sources will compiled automatically.
For more details about the build lifecycle and phases please see Maven's documentation.