pom.xml 6.47 KB
<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">
	<parent>
		<groupId>fr.tlse.irap.pt</groupId>
		<artifactId>pt</artifactId>
		<version>3.0.0</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>client</artifactId>

	<name>PropagationTool Client</name>
	<description>PropagationTool Client Module</description>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<!-- PropTool dependencies -->
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>javafx</artifactId>
			<version>${javafx.version}</version>
			<systemPath>${javafx.jar}</systemPath>
			<scope>system</scope>
		</dependency>
		<dependency>
			<groupId>fr.tlse.irap.pt</groupId>
			<artifactId>calendar</artifactId>
			<version>3.0.0</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>fr.tlse.irap.pt</groupId>
			<artifactId>common</artifactId>
			<version>3.0.0</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>fr.tlse.irap.pt</groupId>
			<artifactId>amda</artifactId>
			<version>3.0.0</version>
			<scope>compile</scope>
		</dependency>

		<!-- Commons Exec -->
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-exec</artifactId>
			<version>1.1</version>
		</dependency>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.5.6</version>
		</dependency>
		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>before-client</artifactId>
			<version>3.0.0</version>
		</dependency>
		<dependency>
			<groupId>org.astrogrid.samp.hub</groupId>
			<artifactId>jsamp</artifactId>
			<version>1.3-2</version>
		</dependency>
	</dependencies>

	<build>
		<directory>target</directory>
		<outputDirectory>target/classes</outputDirectory>
		<testOutputDirectory>target/test-classes</testOutputDirectory>
		<sourceDirectory>src/main/java</sourceDirectory>
		<testSourceDirectory>src/test/java</testSourceDirectory>
		<resources>
			<resource>
				<filtering>false</filtering>
				<directory>${basedir}/src/main/java</directory>
				<includes>
					<include>**/*.fxml</include>
				</includes>
			</resource>
			<resource>
				<filtering>false</filtering>
				<directory>${basedir}/src/main/resources</directory>
				<includes>
					<include>**/*.*</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<!-- copy all dependencies of your app to target folder -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.3</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<configuration>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
						</configuration>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>${jar-plugin-version}</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Application-Name>Propagation Tool</Application-Name>
							<Main-Class>fr.tlse.irap.EntryApp</Main-Class>
							<implementation-version>1.0</implementation-version>
							<Permissions>all-permissions</Permissions>
						</manifestEntries>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
				</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 xmlns:fx="javafx:com.sun.javafx.tools.ant">
								<!-- define the deploy ANT task -->
								<taskdef resource="com/sun/javafx/tools/ant/antlib.xml"
									uri="javafx:com.sun.javafx.tools.ant" classpath="${ant-javafx.jar}" />
								<!-- define the JarSing ANT task -->
								<taskdef name="jfxsignjar" classname="com.sun.javafx.tools.ant.FXSignJarTask"
									classpathref="maven.plugin.classpath" />
								<fx:deploy width="1230" height="765" 
									outdir="${project.build.directory}/deploy" 
									codebase="${pt-url}/${pt-warname}/deploy"
									outfile="${project.build.finalName}"
									nativeBundles="none" verbose="true" updatemode="always">
									<info title="${project.name}" description="Propagation web tool" />
									<!-- set the main class of your application -->
									<application name="${project.name}" mainClass="fr.tlse.irap.EntryApp">
										<argument>${pt-url}</argument>
										<argument>${pt-warname}</argument>
									</application>
									<resources>
										<fileset dir="${project.build.directory}" includes="*.jar" />
										<fileset dir="${project.build.directory}/dependency"
											includes="*.jar *.jnpl" />
									</resources>
									<!-- set your jvm args -->
									<platform javafx="${javafx.version}+" j2se="1.7+">
										<jvmarg value="-Xms512m" />
										<jvmarg value="-Xmx1024m" />
									</platform>
									<fx:permissions elevated="true" />
								</fx:deploy>
								<jfxsignjar destdir="${project.build.directory}/deploy"
									keystore="${project.basedir}/proptool.jks" storepass="proptool"
									alias="proptool" keypass="proptool" verbose="true">
									<fileset dir="${project.build.directory}/deploy"
										includes="*.jar">
									</fileset>
								</jfxsignjar>
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>com.oracle</groupId>
						<artifactId>ant-javafx</artifactId>
						<version>${javafx.version}</version>
						<systemPath>${ant-javafx.jar}</systemPath>
						<scope>system</scope>
					</dependency>
				</dependencies>
			</plugin>

		</plugins>
		<finalName>${pt-name}</finalName>
	</build>

</project>