Created
May 22, 2012 18:07
-
-
Save hogeika/2770634 to your computer and use it in GitHub Desktop.
maven setting for JavaFX2 build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>org.hogeika.example</groupId> | |
<artifactId>javafx</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>javafx</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.7</source> | |
<target>1.7</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<configuration> | |
<target> | |
<taskdef name="jfxjar" classname="com.sun.javafx.tools.ant.FXJar" | |
classpathref="maven.plugin.classpath" /> | |
<jfxjar destfile="${project.build.directory}/${project.build.finalName}"> | |
<fileset dir="${project.build.directory}/classes" /> | |
<application name="${project.name}" | |
mainClass="org.hogeika.example.javafx.HelloWorld" /> | |
<resources> | |
</resources> | |
</jfxjar> | |
</target> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>com.sun.javafx</groupId> | |
<artifactId>javafx-ant</artifactId> | |
<version>2.1</version> | |
<scope>system</scope> | |
<systemPath>${javafx2.home}\tools\ant-javafx.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.10</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.oracle</groupId> | |
<artifactId>javafx</artifactId> | |
<version>2.1</version> | |
<scope>system</scope> | |
<systemPath>${javafx2.home}\rt\lib\jfxrt.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<profiles> | |
<profile> | |
<id>javafx2</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<javafx2.home>C:\Program Files\Oracle\JavaFX 2.1 SDK</javafx2.home> | |
</properties> | |
</profile> | |
</profiles> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment