Search

Sonntag, 4. März 2018

Maven and JavaFx

Finally my project start is ongoing, recently i had some problems with my maven build, so to use JavaFX you just need to add some lines here is working example of pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>FirstJavaFxApp</groupId>
<artifactId>FirstJavaFxApp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>simple JavaFx App</description>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<javafx>c:\JAVA\jdk8-131\jre\lib\ext\</javafx>
</properties>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>javafx</artifactId>
<version>8</version>
<systemPath>${javafx}/jfxrt.jar</systemPath>
<scope>system</scope>
</dependency>
</dependencies>

</project>

Blog-Archiv

Blog readers favorites