archetype-resources.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (C) 2011 Schlichtherle IT Services - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --> <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>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <name>${artifactId}</name> <description>Creates a standalone JavaFX 2.0 application written in Scala. The generated application is translated from the Colorful Circles demo from the JavaFX 2.0 SDK. </description> <properties> <exec.mainClass>${package}.ColorfulCirclesDocs</exec.mainClass> <javafx.runtime.lib.jar>${env.JAVAFX_HOME}/rt/lib/jfxrt.jar</javafx.runtime.lib.jar> <javafx.tools.ant.jar>${env.JAVAFX_HOME}/tools/ant-javafx.jar</javafx.tools.ant.jar> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <scala.version>2.8.2</scala.version> </properties> <dependencies> <dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>${scala.version}</version> </dependency> <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_${scala.version}</artifactId> <version>1.5.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scala-tools.testing</groupId> <artifactId>scalacheck_2.8.1</artifactId> <version>1.8</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope>test</scope> </dependency> <dependency> <groupId>javafx</groupId> <artifactId>jfxrt</artifactId> <version>2.0</version> <scope>system</scope> <systemPath>${javafx.runtime.lib.jar}</systemPath> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-enforcer-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <id>enforce-maven</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireMavenVersion> <version>3.0.3</version> </requireMavenVersion> <requireJavaVersion> <version>1.6</version> </requireJavaVersion> <requireProperty> <property>env.JAVAFX_HOME</property> <message>You must set the environment variable JAVAFX_HOME to the installation directory of the JavaFX 2.0 SDK!</message> </requireProperty> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <version>2.15.2</version> <executions> <execution> <id>scala-compile-first</id> <phase>process-resources</phase> <goals> <goal>add-source</goal> <goal>compile</goal> </goals> <configuration> <args> <arg>-deprecation</arg> <arg>-make:transitive</arg> <arg>-dependencyfile</arg> <arg>${project.build.directory}/scala-dependencies</arg> </args> </configuration> </execution> <execution> <id>scala-test-compile</id> <phase>process-test-resources</phase> <goals> <goal>testCompile</goal> </goals> <configuration> <args> <arg>-deprecation</arg> <arg>-make:transitive</arg> <arg>-dependencyfile</arg> <arg>${project.build.directory}/scala-test-dependencies</arg> </args> </configuration> </execution> </executions> <configuration> <jvmArgs> <jvmArg>-Xss2m</jvmArg> </jvmArgs> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <!-- Required for NetBeans 7.0.1 to figure source/target. --> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <showDeprecation>true</showDeprecation> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.9</version> <configuration> <includes> <include>**/*Test.class</include> <include>**/*Suite.class</include> <include>**/*Spec.class</include> </includes> </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>create-launcher-jar</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target xmlns:fx="javafx:com.sun.javafx.tools.ant"> <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${javafx.tools.ant.jar}"/> <fx:application id="fxApp" name="${project.name}" mainClass="${exec.mainClass}"/> <fx:jar destfile="${project.build.directory}/${project.build.finalName}-launcher"> <fx:application refid="fxApp"/> <fx:fileset dir="${project.build.directory}/classes"/> </fx:jar> <attachartifact file="${project.build.directory}/${project.build.finalName}-launcher.jar" classifier="launcher"/> </target> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> <configuration> <descriptors> <descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor> </descriptors> <archive> <manifestEntries> <JavaFX-Version>2.0</JavaFX-Version> <JavaFX-Application-Class>${exec.mainClass}</JavaFX-Application-Class> <Main-Class>com/javafx/main/Main</Main-Class> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.scala-tools</groupId> <artifactId>maven-scala-plugin</artifactId> <version>2.15.2</version> </plugin> </plugins> </reporting> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy