pom.xml
6.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<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>