forked from opengeospatial/geoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
585 lines (533 loc) · 22.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
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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
<?xml version="1.0" encoding="UTF-8"?>
<!-- =============================================================================================
Maven project configuration file
http://maven.apache.org/
Build specification only: mvn pre-site -N
Build development snapshot: mvn clean install
Build also Python wheel: mvn install -Ppython
Build with Python tests: mvn install -DskipNativeLibraryTests=false
Publish a release: mvn clean install deploy -Pgeoapi-release
============================================================================================= -->
<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>
<!-- ===========================================================================================
Project description (license, mailing lists, issues management, etc).
=========================================================================================== -->
<groupId>org.opengis</groupId>
<artifactId>geoapi-parent</artifactId>
<packaging>pom</packaging>
<version>4.0-SNAPSHOT</version>
<name>GeoAPI</name>
<url>http://www.geoapi.org/</url>
<description>
GeoAPI provides a set of programming language interfaces for geospatial applications.
The project aims to reduce duplication and increase interoperability by providing neutral,
interface-only APIs derived from OGC/ISO Standards.
</description>
<organization>
<name>Open Geospatial Consortium</name>
<url>http://www.opengeospatial.org/</url>
</organization>
<inceptionYear>1994</inceptionYear>
<licenses>
<license>
<name>OGC copyright</name>
<url>https://raw.githubusercontent.com/opengeospatial/geoapi/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/opengeospatial/geoapi</connection>
<url>https://github.com/opengeospatial/geoapi</url>
</scm>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/opengeospatial/geoapi/issues</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>GeoAPI Standard Working Group (OGC)</name>
<subscribe>https://lists.opengeospatial.org/mailman/listinfo/geoapi.swg</subscribe>
<unsubscribe>https://lists.opengeospatial.org/mailman/listinfo/geoapi.swg</unsubscribe>
<post>[email protected]</post>
<archive>https://lists.opengeospatial.org/mailman/listinfo/geoapi.swg</archive>
</mailingList>
</mailingLists>
<developers>
<developer>
<name>GeoAPI contributors</name>
<organizationUrl>http://www.geoapi.org/</organizationUrl>
<roles>
<role>Java developers</role>
</roles>
</developer>
<developer>
<name>GeoAPI Standard Working Group</name>
<organization>Open Geospatial Consortium</organization>
<organizationUrl>http://www.opengeospatial.org/</organizationUrl>
<roles>
<role>Specification editors</role>
</roles>
</developer>
</developers>
<!-- ===========================================================================================
Profiles and properties controlling the build.
The default configuration is used for building snapshots, in order to test
GeoAPI development by implementaters. For final releases by OGC staff, the
"geoapi-release" profile shall be activated like below:
mvn clean install deploy -Pgeoapi-release
Optionally, if the Python native libraries are installed on the local machine,
then GeoAPI can be built with the "-DskipNativeLibraryTests=false" option.
=========================================================================================== -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<website.encoding>UTF-8</website.encoding>
<skipNativeLibraryTests>true</skipNativeLibraryTests>
<maven.compiler.release>8</maven.compiler.release>
<future.source>module-info.java</future.source> <!-- To exclude when JDK9 profile is not enabled. -->
</properties>
<profiles>
<!--
Create Python wheel package in target/dist/geoapi-*.tar.gz
-->
<profile>
<id>python</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<inherited>false</inherited>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<executable>python3</executable>
<arguments>
<argument>src/main/python/build.py</argument>
<argument>sdist</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!--
Build as Java 9 modules (experimental). We provide the module-info.java file in
a separated director for avoiding to confuse IDEs, and for making easier to use
a different module-info.java file in geoapi-pending.
-->
<profile>
<id>jdk9</id>
<properties>
<maven.compiler.release>9</maven.compiler.release>
<future.source>(none)</future.source>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>sources</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java9</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
Official release: require signing the JAR files.
-->
<profile>
<id>sign-artifacts</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<nonavbar>true</nonavbar> <!-- Navigation bar not used when Javadoc is browsed from IDE. -->
<doclint>-reference</doclint> <!-- Cross-modules references are valid only in aggregated javadoc. -->
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<name>Open Source Software Repository Hosting</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<!-- ===========================================================================================
External dependencies used by GeoAPI or to be inherited by external projects
using GeoAPI. The <dependencyManagement> section declares version numbers.
It is followed by a <dependencies> section listing the dependencies actually
required by the core of GeoAPI library; other dependencies are used only for
tests or examples. External projects can inherit those version numbers with
the following fragment in their pom.xml file:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opengis</groupId>
<artifactId>geoapi-parent</artifactId>
<version>${geoapi.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
...
=========================================================================================== -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.measure</groupId>
<artifactId>unit-api</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>tech.uom</groupId>
<artifactId>seshat</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- The JUnit version number appears also in the Javadoc plugin configuration,
in shell scripts, in Java code generating reports, and in NetBeans project
configuration. If JUnit is updated, please search for the version number in
the whole project. Search also for version number of the Hamcrest dependency. -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.vecmath</groupId>
<artifactId>vecmath</artifactId>
<version>1.5.2</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- All dependencies required by the core of GeoAPI interfaces. -->
<dependencies>
<dependency>
<groupId>javax.measure</groupId>
<artifactId>unit-api</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- ===========================================================================================
The plugin management section declares the version numbers of all plugins
needed for building GeoAPI and associated documentation. Configuration for
each plugin appear after <pluginManagement> section.
=========================================================================================== -->
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
</pluginManagement>
<!-- =========================================================================================
Configuration check before compilation
========================================================================================= -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<requireJavaVersion>
<version>18</version>
</requireJavaVersion>
<dependencyConvergence/>
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- =========================================================================================
Compilation
========================================================================================= -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>${maven.compiler.release}</release>
<debug>false</debug> <!-- Whether to include debugging information. -->
<encoding>${project.build.sourceEncoding}</encoding>
<useIncrementalCompilation>false</useIncrementalCompilation> <!-- https://issues.apache.org/jira/browse/MCOMPILER-209 -->
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArgs>
<arg>-Xlint:all</arg>
<arg>-Xdoclint:all,-reference</arg>
</compilerArgs>
<excludes>
<exclude>${future.source}</exclude>
</excludes>
</configuration>
</plugin>
<!-- =========================================================================================
Tests
========================================================================================= -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<maven.source.directory>${project.build.sourceDirectory}</maven.source.directory>
</systemPropertyVariables>
<printSummary>false</printSummary>
</configuration>
</plugin>
<!-- =========================================================================================
JAR packaging
========================================================================================= -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Specification-Title>GeoAPI</Specification-Title>
<Specification-Version>${project.version}</Specification-Version>
<Specification-Vendor>${project.organization.name}</Specification-Vendor>
<Implementation-Vendor>The GeoAPI project</Implementation-Vendor>
<Implementation-URL>http://www.geoapi.org/</Implementation-URL>
</manifestEntries>
</archive>
<skipIfEmpty>true</skipIfEmpty>
</configuration>
</plugin>
<!-- ============================================================================================
Remove previous snapshots from local repository
============================================================================================ -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>remove-old-artifacts</id>
<goals>
<goal>remove-project-artifact</goal>
</goals>
<configuration>
<removeAll>false</removeAll> <!-- Remove only snapshots of this project version. -->
</configuration>
</execution>
</executions>
</plugin>
<!-- ============================================================================================
Javadoc generation
============================================================================================ -->
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<top>
<!-- Remove this notice for the final GeoAPI release! -->
<div class="snapshot-warning"><b>This specification is not final and is subject to change.</b><br/>
For OGC standard, see <a href="http://www.geoapi.org/3.0/javadoc/index.html">GeoAPI 3.0.2</a>.
</div>
</top>
<encoding>${project.build.sourceEncoding}</encoding>
<docencoding>${website.encoding}</docencoding>
<charset>${website.encoding}</charset>
<release>17</release>
<author>false</author> <!-- Specifies whether or not the author text is included. -->
<version>false</version> <!-- Includes or not the version text in the generated docs. -->
<noqualifier>all</noqualifier> <!-- Omits qualifying package name from ahead of class names in output. -->
<quiet>true</quiet> <!-- Shuts off non-error and non-warning messages. -->
<locale>en</locale> <!-- The locale that javadoc uses when generating documentation. -->
<keywords>true</keywords> <!-- Adds HTML meta keyword tags to the generated file for each class. -->
<breakiterator>true</breakiterator>
<additionalOptions>
-html5 -Xdoclint:syntax --add-stylesheet "${basedir}/src/main/javadoc/geoapi.css"
</additionalOptions>
<additionalDependencies>
<additionalDependency>
<groupId>org.opengis</groupId>
<artifactId>geoapi-pending</artifactId>
<version>${project.version}</version>
</additionalDependency>
</additionalDependencies>
<!-- Do not add the "API" word in document title, because it is already included in the "GeoAPI name. -->
<doctitle>${project.name} ${project.version}</doctitle>
<windowtitle>${project.name} ${project.version}</windowtitle>
<!-- Doclet for special processing of departure tables. -->
<doclet>org.opengis.tools.doclet.FlushableDoclet</doclet>
<docletArtifact>
<groupId>org.opengis</groupId>
<artifactId>tools</artifactId>
<version>${project.version}</version>
</docletArtifact>
<!-- Custom taglets implemented in Java. -->
<taglets>
<taglet>
<tagletClass>org.opengis.tools.doclet.Departure</tagletClass>
</taglet>
</taglets>
<tagletArtifact>
<groupId>org.opengis</groupId>
<artifactId>tools</artifactId>
<version>${project.version}</version>
</tagletArtifact>
<!-- Enables the Javadoc tool to interpret a simple, one-argument
custom block tag tagname in doc comments. Note: <placement/>
should be a combination of the "Xaoptcmf" letters. -->
<tags>
<tag><placement>X</placement> <name>category</name> <head>Category:</head></tag>
<tag><placement>tfmc</placement> <name>condition</name> <head>Condition:</head></tag>
<tag><placement>tfmc</placement> <name>todo</name> <head>TODO:</head></tag>
<tag><placement>X</placement> <name>issue</name> <head>JIRA:</head></tag>
<tag><placement>fm</placement> <name>unitof</name> <head>Unit:</head></tag>
</tags>
<!-- Creates links to existing javadoc-generated
documentation of external referenced classes. -->
<detectJavaApiLink>false</detectJavaApiLink>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
<link>https://download.java.net/media/java3d/javadoc/1.5.2/</link>
<link>https://download.java.net/media/jai/javadoc/1.1.3/jai-apidocs/</link>
<link>https://junit.org/junit4/javadoc/latest/</link>
<link>https://iogp-gigs.github.io/GIGSGeoAPI/</link>
<link>https://www.geoapi.org/snapshot/javadoc/</link> <!-- For modules that depend on GeoAPI. -->
</links>
</configuration>
</plugin>
</plugins>
</build>
<!-- ===========================================================================================
Deployment to public servers
=========================================================================================== -->
<distributionManagement>
<repository>
<id>geoapi.snapshots</id> <!-- For snapshots and milestones only -->
<name>GeoAPI snapshots</name>
<url>${distMgmtSnapshotsUrl}</url>
</repository>
</distributionManagement>
<!-- =========================================================================================
All GeoAPI modules included in the build
========================================================================================= -->
<modules>
<module>geoapi</module>
<module>geoapi-pending</module>
<module>geoapi-conformance</module>
<module>geoapi-examples</module>
<!-- module>geoapi-java-python</module -->
<module>tools</module>
</modules>
</project>