-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
361 lines (335 loc) · 16.7 KB
/
pom.xml
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!--
* This file is part of AtlasMapper server and clients.
*
* Copyright (C) 2011 Australian Institute of Marine Science
*
* Contact: Gael Lafond <g.lafond@aims.gov.au>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>au.gov.aims</groupId>
<artifactId>atlasmapper</artifactId>
<packaging>war</packaging>
<version>2.4.7</version>
<name>AtlasMapper server and clients</name>
<description>This application compiled as a single War, that can be deployed in Tomcat, without any other dependency.\n\
It contains:\n\
* a GUI to configure the clients (protected by a login, preferably set up under HTTPS),\n\
* multi-client capability,\n\
* a proxy that redirect AJAX request to be sent to an other domain (restricted to the hosts used by the Atlas Mapper client, to avoid XSS)</description>
<url>https://github.com/atlasmapper/atlasmapper</url>
<!--
NOTE: The license info is duplicated in src/main/resources/project.properties
and in the profiles section (for NetBeans templating)
-->
<licenses>
<license>
<name>GPL-3.0</name>
<url>http://www.gnu.org/copyleft/gpl.html</url>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<netcdfversion>5.0.0-alpha3</netcdfversion>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
<repositories>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
</repository>
<!-- AIMS ks maven repository on GitHub -->
<repository>
<id>aims-ks.mvn-mirror-repo</id>
<name>AIMS Knowledge System Maven Mirror repository</name>
<url>https://raw.githubusercontent.com/aims-ks/mvn-mirror-repo/master/</url>
</repository>
</repositories>
<!-- Search maven repo: http://search.maven.org -->
<dependencies>
<!-- Jar containing classes provided by tomcat - Not included in the war -->
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>8.0.1</version>
<scope>provided</scope>
</dependency>
<!-- Used to define a custom Maven lifecycle phase (the package zip thingy) -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>3.8.1</version>
</dependency>
<!-- Library used to parse GetCapabilities documents (mandatory) - gt-wms (205.7k), dependencies (4.5M) -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wms</artifactId>
<version>27.1</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-wmts</artifactId>
<version>27.1</version>
</dependency>
<!-- Database containing the information about the EPSG CRS projections - dependencies (1.3M) -->
<!-- Available database format:
* hsql (gt-epsg-hsql - 1.8M) (SQL database in memory)
* wkt (gt-epsg-wkt - 87.3k) (Well Known Text - Deprecated)
* PostgreSQL (gt-epsg-postgresql)
* Oracle (gt-epsg-oracle)
* Access (gt-epsg-access)
IMPORTANT: Use only one as they conflict with each other. -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>27.1</version>
</dependency>
<!-- More EPSG CRS projections (Google, ESRI, etc.) - gt2-epsg-extension (29.5k) -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-extension</artifactId>
<version>27.1</version>
</dependency>
<!-- Templating to generate HTML files - freemarker (902.6k) (This is the templating used by GeoServer) -->
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.31</version>
</dependency>
<!-- Apache HTTP Client, used by the URLCache class -->
<!-- See: http://hc.apache.org/ -->
<!-- Java DOC: http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/index.html -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
</dependency>
<!-- To parse THREDDS catalog.xml -->
<dependency>
<groupId>edu.ucar</groupId>
<artifactId>cdm</artifactId>
<version>${netcdfversion}</version>
</dependency>
<!-- H2 Database used with CacheDatabase -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.2.220</version>
</dependency>
<!-- Used for JUnit tests - Not included in the war -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Make the clientResources folder accessible for both the application and the JUnit tests
without the examples and source files of the JS libraries (they make the war way too big) -->
<!-- http://maven.apache.org/pom.html -->
<resources>
<resource>
<directory>src/main/resources</directory>
<!-- filtering: true to allow maven to translate the variables in those resources to their values
Affected files: project.properties, README.txt
Example: "AtlasMapper version: ${project.version}" become "AtlasMapper version: 1.4.4" -->
<filtering>true</filtering>
</resource>
<resource>
<directory>${project.basedir}/clientResources</directory>
<excludes>
<exclude>amc/GeoExt/examples/**</exclude>
<exclude>amc/GeoExt/lib/**</exclude>
<exclude>amc/GeoExt/resources/**</exclude>
<exclude>amc/GeoExt/GeoExt-release-1.0-rc1.zip</exclude>
<exclude>amc/GeoExt/license.txt</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/apidoc_config/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/art/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/build/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/doc/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/doc_config/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/examples/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/lib/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/notes/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/tests/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.12/tools/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/apidoc_config/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/art/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/build/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/doc/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/doc_config/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/examples/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/lib/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/notes/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/tests/**</exclude>
<exclude>amc/OpenLayers/OpenLayers-2.13.1/tools/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/docs/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/examples/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/pkgs/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/src/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/test/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/welcome/**</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/INCLUDE_ORDER.txt</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/ext-all-debug-w-comments.js</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/ext.jsb2</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/gpl-3.0.txt</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/index.html</exclude>
<exclude>amc/extjs/3.3.0/ext-3.3.0/license.txt</exclude>
</excludes>
</resource>
</resources>
<testResources>
<testResource>
<directory>${project.basedir}/clientResources</directory>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<!-- warResources do not work as a resource, the method getResource can't find them -->
<!-- http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html -->
<!-- packagingExcludes can be used to exclude any files from the war -->
<!-- http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html -->
<packagingExcludes>
extjs/4.0.2/ext-4.0.2/build/**,
extjs/4.0.2/ext-4.0.2/builds/**,
extjs/4.0.2/ext-4.0.2/docs/**,
extjs/4.0.2/ext-4.0.2/examples/**,
extjs/4.0.2/ext-4.0.2/jsbuilder/**,
extjs/4.0.2/ext-4.0.2/overview/**,
extjs/4.0.2/ext-4.0.2/pkgs/**,
extjs/4.0.2/ext-4.0.2/src/**,
extjs/4.0.2/ext-4.0.2/welcome/**,
extjs/4.0.2/ext-4.0.2/welcome/ext-all-debug-w-comments.js,
extjs/4.0.2/ext-4.0.2/welcome/ext-all-dev.js,
extjs/4.0.2/ext-4.0.2/welcome/ext-debug.js,
extjs/4.0.2/ext-4.0.2/welcome/ext-dev.js,
extjs/4.0.2/ext-4.0.2/welcome/index.html,
extjs/4.0.2/ext-4.0.2/welcome/license.txt,
extjs/4.0.2/ext-4.0.2/welcome/release-notes.html,
</packagingExcludes>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<!-- After running "package" goal, this ant plugin create a zip file containing the WAR, the licence and the readme file. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<target>
<!-- NOTE: No version number in filename to help GitHub release to find it -->
<zip destfile="${project.build.directory}/${project.build.finalName}.zip">
<filelist dir="${project.build.directory}">
<file name="${project.build.finalName}.${project.packaging}"/>
</filelist>
<filelist dir="${project.build.outputDirectory}">
<file name="GPL.txt"/>
<file name="LICENCE.txt"/>
<file name="README.txt"/>
<file name="CHANGELOG.txt"/>
</filelist>
</zip>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>atlasmapper</finalName>
</build>
<!-- TODO Find out how those profiles ended up here and delete them!! -->
<profiles>
<profile>
<id>netbeans-private</id>
<activation>
<property>
<name>netbeans.execution</name>
<value>true</value>
</property>
</activation>
<properties>
<!--
The "Hint" automatically add the license to the header
of each new created files, in Netbeans.
The License name as to correspond to a License file.
See Tools > Templates > Licenses.
-->
<netbeans.hint.license>gpl30</netbeans.hint.license>
</properties>
</profile>
<profile>
<id>endorsed</id>
<activation>
<property>
<name>sun.boot.class.path</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<!-- javaee6 contains upgrades of APIs contained within the JDK itself.
As such these need to be placed on the bootclasspath, rather than classpath of the
compiler.
If you don't make use of these new updated API, you can delete the profile.
On non-SUN jdk, you will need to create a similar profile for your jdk, with the similar property as sun.boot.class.path in Sun's JDK.-->
<compilerArguments>
<bootclasspath>${settings.localRepository}/javax/javaee-endorsed-api/6.0/javaee-endorsed-api-6.0.jar${path.separator}${sun.boot.class.path}</bootclasspath>
</compilerArguments>
</configuration>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>