Building Java FX 2 Libraries From Source With Maven 3 📎
- Get the sources:
hg clone http://hg.openjdk.java.net/openjfx/2.2/master/rt. For subsequent updates use:hg pull -u - Create a JavaFX profile with a pointer to the javafx 2.2. SDK. Hence not all sources are open yet, this is a necessary step:
<profile> <id>javafx</id> <activation> <activeByDefault>false</activeByDefault> </activation> <properties> <fx.home>[PATH TO JAVAFX INSTALLATION]/javafx-sdk2.2.0-beta/</fx.home> </properties> </profile> - Execute:
mvn -Pjavafx clean install - You should see the following output:
[INFO] javafx ............................................ SUCCESS [0.740s] [INFO] test-stub-toolkit ................................. SUCCESS [2.676s] [INFO] javafx-beans-dt ................................... SUCCESS [1.080s] [INFO] javafx-concurrent ................................. SUCCESS [1.385s] [INFO] javafx-ui-controls ................................ SUCCESS [9.607s] [INFO] javafx-designtime ................................. SUCCESS [0.479s] [INFO] javafx-ui-common .................................. SUCCESS [8.973s] [INFO] javafx-rt ......................................... SUCCESS [2.241s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 27.337s - Pick your own fx-runtime library from:
javafx-ueber-jar/target/jfxrt.jar - Run tests, file bugs: Java FX Jira :-)