This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
pom.xml
517 lines (462 loc) · 22.3 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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
<?xml version="1.0" encoding="UTF-8"?>
<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>
<!-- NOTE THIS IS SUPERSEDED BY THE GRADLE BUILD. THIS FILE EXISTS ONLY AS A REFERENCE DURING THE TRANSITION. -->
<groupId>com.conveyal</groupId>
<artifactId>analysis</artifactId>
<version>5.11.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<geotools.version>21.2</geotools.version>
<jackson.version>2.10.3</jackson.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<archive>
<manifestEntries>
<!-- For Java 11 Modules, specify a module name. -->
<!-- Do not create module-info.java until all our dependencies specify a module name. -->
<Automatic-Module-Name>com.conveyal.analysis</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- The shade plugin makes a "fat" standalone jar containing all dependencies. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<!-- Put all shaded JARs into their own subdirectory so they can be -->
<outputDirectory>target/shaded</outputDirectory>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<!-- We use Java ImageIO which is extremely picky about having extra info in the manifest -->
<Specification-Title>Java Advanced Imaging Image I/O Tools</Specification-Title>
<Specification-Version>1.1</Specification-Version>
<Specification-Vendor>Sun Microsystems, Inc.</Specification-Vendor>
<Implementation-Title>com.sun.media.imageio</Implementation-Title>
<Implementation-Version>1.1</Implementation-Version>
<Implementation-Vendor>Sun Microsystems, Inc.</Implementation-Vendor>
</manifestEntries>
</transformer>
</transformers>
<filters>
<filter>
<!-- exclude signatures from merged JAR to avoid invalid signature messages -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<id>local-or-worker</id>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<finalName>${git.commit.id.describe}</finalName>
<!-- Start R5Main rather than AnalystWorker or BackendMain to behave like legacy R5 JARs -->
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.conveyal.r5.R5Main</Main-Class>
</manifestEntries>
</transformer>
<!-- Merge service loader declarations in META-INF/services/, required by GeoTools. -->
<!-- Must be in the two execution configs, fails when in top level shade config. -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- Plugin for running unit tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<!-- We have to fork the JVM during tests so that the argLine is passed along -->
<forkCount>1</forkCount>
<!-- Allow reflection under Java 11+ so that the ObjectDiffer works during tests -->
<argLine>
-Xmx2G
-Dfile.encoding=UTF-8
--illegal-access=permit
--add-opens java.base/java.lang.module=ALL-UNNAMED
--add-opens java.base/jdk.internal.reflect=ALL-UNNAMED
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/jdk.internal.util=ALL-UNNAMED
--add-opens java.base/jdk.internal.util.jar=ALL-UNNAMED
--add-opens java.base/jdk.internal.module=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
<!-- The git-commit-id-plugin allows us to make a unique build number and access it programmatically.
Also tried the buildnumber plugin, but it requires you to set SCM URLs and tries to do some auto-fetching magic. -->
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>false</verbose>
<includeOnlyProperties>
<!-- Including only the properties used reduces plugin execution time. -->
<includeOnlyProperty>git.branch</includeOnlyProperty>
<includeOnlyProperty>git.dirty</includeOnlyProperty>
<includeOnlyProperty>git.commit.id</includeOnlyProperty>
<includeOnlyProperty>git.commit.id.describe</includeOnlyProperty>
<includeOnlyProperty>git.commit.time</includeOnlyProperty>
<includeOnlyProperty>git.build.host</includeOnlyProperty>
<includeOnlyProperty>git.build.time</includeOnlyProperty>
<includeOnlyProperty>git.build.version</includeOnlyProperty>
<includeOnlyProperty>project.version</includeOnlyProperty>
</includeOnlyProperties>
<!-- When set to generate the properties file, the variables are still available within Maven. -->
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>
${project.build.outputDirectory}/version.properties
</generateGitPropertiesFilename>
<gitDescribe>
<!-- Describe relative to lightweight or annotated tags. One may set a lightweight tag by
accident, and semantic-release also creates lightweight tags (not currently using that). -->
<tags>true</tags>
</gitDescribe>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>osgeo</id>
<name>Open Source Geospatial Foundation Release Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
<snapshots><enabled>false</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
<!-- TODO review whether we need these repositories -->
<repository>
<id>conveyal</id>
<name>Conveyal</name>
<url>https://maven.conveyal.com</url>
</repository>
<!-- Used for importing java projects from github (why do we need this?) -->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<!-- For the polyline encoder -->
<repository>
<id>axiom-public-releases</id>
<name>Axiom Releases</name>
<url>https://nexus.axiomalaska.com/nexus/content/repositories/public-releases</url>
</repository>
</repositories>
<dependencies>
<!-- Spark is an HTTP framework built on Jetty. Its name is the same as several other projects. -->
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.7.2</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Logging API. -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
</dependency>
<!-- Logging API implementation. -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>3.11.0</version>
</dependency>
<dependency>
<groupId>org.mongojack</groupId>
<artifactId>mongojack</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- CSV parser. GTFS is a set of zipped CSV files, and some of our other inputs are CSV files. -->
<dependency>
<groupId>net.sourceforge.javacsv</groupId>
<artifactId>javacsv</artifactId>
<version>2.0</version>
</dependency>
<!-- JCommander parses command line arguments (including standard switches) to main methods. -->
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.30</version>
</dependency>
<!-- GeoTools provides GIS functionality on top of JTS topology suite. -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-opengis</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-referencing</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-coverage</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-geojson</artifactId>
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-geotiff</artifactId>
<version>${geotools.version}</version>
</dependency>
<!-- The EPSG coordinate reference system catalog as an HSQL database. -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>${geotools.version}</version>
</dependency>
<!-- Legacy JTS with com.vividsolutions package name. Newer Geotools compatible with Java 11 uses a newer version of
JTS with the org.locationtech package name. But our MapDB format includes serialized JTS geometries with the
old package name, and some bugs in the older gtfs-lib that produced those MapDB files are preventing us from
migrating to a newer format. So we import both JTS packages and convert between them. -->
<dependency>
<groupId>com.vividsolutions</groupId>
<artifactId>jts</artifactId>
<version>1.13</version>
</dependency>
<!-- MapDB is a pure Java database backend for storing objects out of heap memory.
It provides disk-backed storage that looks like a Java map.
1.0.8 was the second to last release of 1.x, we should probably not bump this unless absolutely necessary
or we're migrating to 3.x or 4.x. See changelog at http://www.mapdb.org/changelog/ -->
<dependency>
<groupId>org.mapdb</groupId>
<artifactId>mapdb</artifactId>
<version>1.0.8</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.1</version>
</dependency>
<!-- JSON Web Token is an internet standard for creating JSON-based access tokens. -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.10.2</version>
</dependency>
<!-- The JSON Web Key Set (JWKS) is a set of keys which contains the public keys used to verify any JSON Web
Token (JWT) issued by the authorization server. Recommended to use in the Auth0 Java JWT docs. -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>jwks-rsa</artifactId>
<version>0.11.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.4</version>
</dependency>
<!-- Commons IO gives us BOMInputStream for handling UTF-8 BOMs. -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<!-- Guava provides a lot of functionality, collections, and tools "missing" from the Java standard library. -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.2-jre</version>
</dependency>
<!-- Caffeine is a Java 8 rewrite of the Guava cache with asynchronous LoadingCaches. We don't currently use
the async capabilities, but Caffeine's LoadingCache syntax is more modern idiomatic Java than Guava's. -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>2.8.1</version>
</dependency>
<!-- httpclient is also used by AWS SDK but it depends on a newer version than the one pulled in by
transitive dependencies. So specify the same version used by AWS SDK here to force it.
Ideally we'll eventually migrate over to Java's built-in HTTP client. -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.6</version>
</dependency>
<!-- Rest Assured is an assertion library that makes testing web APIs easy. -->
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.3</version>
<scope>test</scope>
</dependency>
<!-- JUnit is a Java testing framework. -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- Hamcrest is an assertion library used in a few tests, which prints pretty messages when assertions fail. -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>java-hamcrest</artifactId>
<version>2.0.0.0</version>
<scope>test</scope>
</dependency>
<!-- Snapshotting library for testing -->
<dependency>
<groupId>com.github.conveyal</groupId>
<artifactId>java-snapshot-matcher</artifactId>
<version>e6a78d3af9d67f6f6240261fcba497d3b50f9399</version>
<scope>test</scope>
</dependency>
<!-- Old version of GraphQL-Java used by legacy gtfs-api embedded in analysis-backend -->
<dependency>
<groupId>com.graphql-java</groupId>
<artifactId>graphql-java</artifactId>
<version>2.1.0</version>
</dependency>
<!-- Commons Math gives us FastMath and MersenneTwister. -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.0</version>
</dependency>
<!-- Provides some shared serializers for Kryo. Introduces transitive dependencies on Guava, Trove, and Kryo.
Also provides classes for testing that a round trip through serialization reproduces the same network.
This is an external dependency (not merged into backend) because it's also used by OTP2. -->
<dependency>
<groupId>com.conveyal</groupId>
<artifactId>kryo-tools</artifactId>
<version>1.3.0</version>
</dependency>
<!-- Very efficient collections of primitive data types for Java. -->
<dependency>
<groupId>net.sf.trove4j</groupId>
<artifactId>trove4j</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<!-- TODO eliminate custom Conveyal geojson library, use Geotools? -->
<groupId>com.conveyal</groupId>
<artifactId>jackson2-geojson</artifactId>
<version>0.9</version>
</dependency>
<!--Maintainer has updated this polyline library to match our dependencies (newer JTS). -->
<dependency>
<groupId>com.axiomalaska</groupId>
<artifactId>polyline-encoder</artifactId>
<version>0.2</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- For uploading / downloading things from Amazon S3. -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>1.11.341</version>
</dependency>
<!-- Google Protocol Buffers are used in decoding OSM data and seamless census data. -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<!-- OSM PBF format support. Transitive dependency on Protobuf 3.4.0. TODO investigate any conflict with above -->
<dependency>
<groupId>org.openstreetmap.osmosis</groupId>
<artifactId>osmosis-osm-binary</artifactId>
<version>0.45</version>
</dependency>
<!-- Compressed bitmaps (bitsets) used to track which OSM IDs have been encountered during large operations. -->
<dependency>
<groupId>org.roaringbitmap</groupId>
<artifactId>RoaringBitmap</artifactId>
<version>0.7.3</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Import AWS SDK Bill of Materials in case different modules should be at different version numbers. -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.6.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>