Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
371 lines (359 loc) · 14.8 KB
/
Copy pathpom.xml
File metadata and controls
371 lines (359 loc) · 14.8 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
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
<?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>
<groupId>fr.ign</groupId>
<artifactId>voxatile</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Voxatile</name>
<description>Voxel world generator from real world geographic data</description>
<url>https://github.com/ignfab/voxatile</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<osm4j.version>1.4.1</osm4j.version>
</properties>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/ignfab/voxatile</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>osgeo</id>
<name>OSGeo Release Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
<snapshots><enabled>false</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<!-- OSM4J repository -->
<repository>
<id>topobyte</id>
<url>https://mvn.topobyte.de/</url>
</repository>
<!-- Required by OSM4J -->
<repository>
<id>slimjars</id>
<url>https://mvn.slimjars.com</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<!--
BOM DEPENDENCIES
================
These dependencies are BOMs (Bill of Materials).
They are used to provide the version of other dependencies included below.
-->
<dependency>
<groupId>tools.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>3.2.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-bom</artifactId>
<version>34.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!--
COMPILE DEPENDENCIES
====================
These dependencies are bundled into the final JAR.
Please try to avoid excessive library usage as it directly impacts the build time and JAR size.
-->
<!-- SQLite JDBC -->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.53.4.0</version>
</dependency>
<!-- Logging framework abstraction -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.19</version>
</dependency>
<!-- Simple logger (default Java implementation) -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.19</version>
</dependency>
<!-- JTS (vector geometry data library) -->
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.20.0</version>
</dependency>
<!-- GeoTools (geographic data manipulation library) -->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
</dependency>
<dependency>
<groupId>org.geotools.xsd</groupId>
<artifactId>gt-xsd-wfs</artifactId>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-referencing</artifactId>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-geopkg</artifactId>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-geotiff</artifactId>
</dependency>
<!--
Required to identify coordinates reference systems
Example error: No code "EPSG:4326" from authority "EPSG"
-->
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
</dependency>
<!-- Minecraft NBT file format -->
<dependency>
<groupId>io.github.ens-gijs.nbt</groupId>
<artifactId>nbt-mca</artifactId>
<version>0.2.0</version>
<scope>compile</scope>
</dependency>
<!-- Jackson (Yaml/Json deserialization) -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>tools.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
</dependency>
<!-- Transitive dependencies for databind (If missing they might have a NoSuchMethodError)-->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<!-- Apache command line argument parsing -->
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.11.0</version>
</dependency>
<!-- Type-specific collections -->
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil-core</artifactId>
<version>8.5.19</version>
</dependency>
<!-- Apache pools utility -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.13.1</version>
</dependency>
<!-- OSM4J -->
<dependency>
<groupId>de.topobyte</groupId>
<artifactId>osm4j-core</artifactId>
<version>${osm4j.version}</version>
</dependency>
<dependency>
<groupId>de.topobyte</groupId>
<artifactId>osm4j-xml</artifactId>
<version>${osm4j.version}</version>
</dependency>
<dependency>
<groupId>de.topobyte</groupId>
<artifactId>osm4j-geometry</artifactId>
<version>${osm4j.version}</version>
</dependency>
<!--
TEST DEPENDENCIES
=================
These dependencies are not included into the final JAR.
They are only available during the test phase, i.e. when running unit tests.
-->
<!-- Unit testing framework -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>6.1.3</version>
<scope>test</scope>
</dependency>
<!-- No-op logger (to silent logs during unit tests) -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>2.0.19</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Final JAR will be named voxatile.jar -->
<finalName>voxatile</finalName>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.16.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.6.0</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.2.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Bundles dependencies into a single executable JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.2</version>
<executions>
<!-- Binds the shade:shade goal to the package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<transformers>
<!-- Ensures the JAR comes with a proper MANIFEST.MF file -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<!-- With at least an entry "Main-Class: ..." to make it executable -->
<mainClass>fr.ign.voxatile.core.Voxatile</mainClass>
</transformer>
<!-- Properly shades all resources, required for GeoTools HSQL embedded databases and GeoTIFF module -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/org.eclipse.imagen.registryFile.jai</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/registryFile.jai</resource>
</transformer>
</transformers>
<filters>
<!-- Removes some duplicated resources being shaded together -->
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/module-info.class</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*LICENSE*</exclude>
<exclude>META-INF/*NOTICE*</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<!-- Removes Eclipse-related duplicated resources -->
<filter>
<artifact>org.eclipse.*:*</artifact>
<excludes>
<exclude>about.*</exclude>
<exclude>modeling32.png</exclude>
<exclude>plugin.xml</exclude>
<exclude>plugin.properties</exclude>
</excludes>
</filter>
<!-- Removes utility class of "scale2" already provided by "scale" -->
<filter>
<artifact>org.eclipse.imagen:scale2</artifact>
<excludes>
<exclude>org/eclipse/imagen/media/scale/JaiI18N.class</exclude>
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</plugin>
<!-- Valides code-style rules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.6.0</version>
<dependencies>
<dependency>
<!-- Overrides checkstyle version -->
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>11.0.1</version>
</dependency>
</dependencies>
<executions>
<!-- Binds the checkstyle:check goal to the verify phase -->
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<!-- Runs checkstyle on test sources as well -->
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
</plugin>
<!-- Generates static HTML documentation from Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
<configuration>
<!-- Disable warnings about missing Javadoc Comments -->
<doclint>all,-missing</doclint>
</configuration>
</plugin>
</plugins>
</build>
</project>