Skip to main content
Last updated March 30, 2012 07:28, by Johan Vos
Feedicon  
The repository at java.net/projects/datafx currently does not contain code to build the artifacts with maven. However, every hour the code is pulled from an internal LodgON machine, and that one has a script generating the artifacts. The artifacts are then published to the LodgON maven repository at http://maven.lodgon.com/maven2 . In order to use the datafx maven artifacts, you have to use the following instructions: <pre> <repositories> <repository> <id>lodgon.com</id> <name>Lodgon Maven Repository</name> <url>http://maven.lodgon.com/maven2</url> </repository> </repositories> <dependencies> ... <dependency> <groupId>org.datafx</groupId> <artifactId>datafx-samples</artifactId> <version>0.0.7-SNAPSHOT</version> </dependency> </dependencies> </pre> Managing the dependency on the JavaFX runtime is another story. This can be achieved in a number of ways, and we encourage users to give feedback about their preferred way. One of the options is to add a dependency on the javafx runtime in the dependencies list, and to specify it in dependencyManagement: <pre> <dependencies> ... <dependency> <groupId>com.oracle</groupId> <artifactId>javafx</artifactId> </dependency> </dependencies> ... <dependencyManagement> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>javafx</artifactId> <version>2.1</version> <scope>system</scope> <systemPath>/opt/javafx/rt/lib/jfxrt.jar</systemPath> </dependency> </dependencies> </dependencyManagement> </pre>
 
 
Close
loading
Please Confirm
Close