I hate Ant. Why? This is hard to display, probably because I start for maven, so Ant is bad for me.
Sometimes Ant can help and can do things that pure maven can not. One of this things is run javafx compiler. I don’t know why but all solutions and configurations doesn’t work.
So… I prepare my version of pom.xml with javafx compiler runner:

Listing 1. Maven ant task for javafx compiler

Remove CDATA comments. Plug-in for code highlight can not support xml IMO.
That’s all folks!