forked from dogsbay/exchangerxml
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpom.xml
More file actions
566 lines (521 loc) · 22.9 KB
/
Copy pathpom.xml
File metadata and controls
566 lines (521 loc) · 22.9 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
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
pom.xml – Phase 2 Maven migration for Exchanger XML Editor.
Dependencies are sourced from:
• Maven Central – 57 of 65 original lib/ JARs
• lib/local-repo – 5 JARs not published to Maven Central
(bounce, MDateSelector, AppleJavaExtensions, jdic, jisp)
• system scope – 4 JARs where the available Central version has
incompatible APIs (dom4j 1.x, Saxon 6.x, l2fprod-common-*)
Ant → Maven lifecycle mapping
════════════════════════════
ant build → mvn package
ant buildFiles → mvn compile
ant jar → mvn package (maven-jar-plugin)
ant run → mvn exec:java (exec-maven-plugin)
ant zip → mvn package -P assembly (maven-assembly-plugin)
ant clean* → mvn clean
-->
<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
https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cladonia</groupId>
<artifactId>xngr-editor</artifactId>
<version>1.3</version>
<packaging>jar</packaging>
<name>Exchanger XML Editor</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Java 8 source/target keeps the same compatibility as the original Ant build -->
<maven.compiler.release>8</maven.compiler.release>
<!-- lib is still used only for the 4 remaining system-scope JARs -->
<lib>${project.basedir}/lib</lib>
<main.class>com.cladonia.util.loader.Loader</main.class>
</properties>
<!-- ═══════════════════════════════════════════════
REPOSITORIES
═══════════════════════════════════════════════ -->
<repositories>
<!--
Project-local repository for the 5 JARs not published to Maven Central.
The JARs were installed here with:
mvn install:install-file -DlocalRepositoryPath=lib/local-repo ...
-->
<repository>
<id>project-local</id>
<name>Project-local repository (non-Central JARs)</name>
<url>file://${project.basedir}/lib/local-repo</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
<!-- ═══════════════════════════════════════════════
BUILD
═══════════════════════════════════════════════ -->
<build>
<!-- Non-standard layout: sources live directly under src/ -->
<sourceDirectory>src</sourceDirectory>
<!--
Include every non-.java file in src/ as a resource so that icon
directories, .properties files, schematron resources, etc. end up
in the JAR. Also include xngr-splash.gif from the project root.
-->
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>xngr-splash.gif</include>
</includes>
</resource>
</resources>
<testSourceDirectory>src/test/java</testSourceDirectory>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<!-- ── Compiler ── -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>8</release>
<showDeprecation>true</showDeprecation>
<debug>true</debug>
<!-- Suppress the 102 deprecation warnings to keep output readable -->
<compilerArgs>
<arg>-Xlint:none</arg>
</compilerArgs>
<testRelease>11</testRelease>
<!-- Exclude test directory from main compilation since sourceDirectory=src
includes everything under src/ including src/test/java -->
<excludes>
<exclude>test/**</exclude>
</excludes>
</configuration>
</plugin>
<!-- ── Surefire (test runner) ── -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<!-- Register the XDocumentFactory so dom4j creates XElement instances
(mirrors Main.java / XSLTDebuggerFrame.java startup) -->
<systemPropertyVariables>
<org.dom4j.factory>com.cladonia.xml.XDocumentFactory</org.dom4j.factory>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- ── JaCoCo (code coverage) ── -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals><goal>prepare-agent</goal></goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals><goal>report</goal></goals>
</execution>
</executions>
</plugin>
<!-- ── JAR (ant: jar target) ── -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<finalName>xngr-editor</finalName>
<outputDirectory>${project.basedir}</outputDirectory>
<archive>
<!--
Use the original hand-crafted Manifest.mf so the Class-Path
entries reference the actual file names in lib/ (e.g.
lib/bounce.jar) rather than Maven artifact names
(lib/bounce-0.14.jar) that do not exist on disk. The app
classloader reads Class-Path at startup, so the names must
match the files present in the distribution.
-->
<manifestFile>${project.basedir}/Manifest.mf</manifestFile>
<manifest>
<mainClass>${main.class}</mainClass>
<addClasspath>false</addClasspath>
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<!-- ── exec:java (ant: run target) ── -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<mainClass>${main.class}</mainClass>
<arguments>
<argument>-ms256M</argument>
<argument>-Xss1m</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
<!-- ═══════════════════════════════════════════════
PROFILES
═══════════════════════════════════════════════ -->
<profiles>
<!--
ant: zip → mvn package -P assembly
Produces a binary ZIP distribution mirroring the original Ant zip target.
-->
<profile>
<id>assembly</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<descriptors>
<descriptor>src/assembly/distribution.xml</descriptor>
</descriptors>
<finalName>xngr-editor</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals><goal>single</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- ═══════════════════════════════════════════════
DEPENDENCY MANAGEMENT
Force safe transitive versions
═══════════════════════════════════════════════ -->
<dependencyManagement>
<dependencies>
<!-- commons-codec 1.2 (pulled in by commons-httpclient) has known CVEs;
override to the current patched release. -->
<dependency>
<groupId>commons-codec</groupId><artifactId>commons-codec</artifactId><version>1.17.2</version>
</dependency>
</dependencies>
</dependencyManagement>
<!-- ═══════════════════════════════════════════════
DEPENDENCIES
═══════════════════════════════════════════════ -->
<dependencies>
<!-- ════════════════════════════
Maven Central dependencies
════════════════════════════ -->
<!-- ── XML / parsing ── -->
<!-- xercesImpl: upgraded to latest 2.x (same xerces:xercesImpl groupId) -->
<dependency>
<groupId>xerces</groupId><artifactId>xercesImpl</artifactId><version>2.12.2</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId><artifactId>xml-apis</artifactId><version>1.4.01</version>
</dependency>
<!-- jaxp.jar (javax.xml.*) is built into the JDK since Java 1.4 — dropped -->
<!-- xalan 2.7.3: fixes CVE-2022-34169 (CVSS 7.5, XSLT integer truncation) -->
<dependency>
<groupId>xalan</groupId><artifactId>xalan</artifactId><version>2.7.3</version>
</dependency>
<dependency>
<groupId>xalan</groupId><artifactId>serializer</artifactId><version>2.7.3</version>
</dependency>
<!-- xsltc classes are bundled inside xalan:xalan — no separate artifact needed -->
<dependency>
<groupId>xml-resolver</groupId><artifactId>xml-resolver</artifactId><version>1.2</version>
</dependency>
<dependency>
<groupId>jaxen</groupId><artifactId>jaxen</artifactId><version>1.1.1</version>
</dependency>
<!-- dom4j 1.5.x/1.6.x are not synced to Maven Central; keep bundled JAR (system) -->
<dependency>
<groupId>com.vendor</groupId><artifactId>dom4j</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/dom4j.jar</systemPath>
</dependency>
<dependency>
<groupId>jdom</groupId><artifactId>jdom</artifactId><version>1.0</version>
</dependency>
<!--
castor:castor:0.9.4.3 on Maven Central has a different API from the bundled JAR
(missing getGlobalElements(), getIncludedSchemas() on Schema). Kept as system scope.
-->
<dependency>
<groupId>com.vendor</groupId><artifactId>castor</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/castor.jar</systemPath>
</dependency>
<dependency>
<!-- Upgraded from 0.9.5 (not on Central) to 1.9.22 -->
<groupId>net.sourceforge.nekohtml</groupId><artifactId>nekohtml</artifactId><version>1.9.22</version>
</dependency>
<dependency>
<groupId>isorelax</groupId><artifactId>isorelax</artifactId><version>20030108</version>
</dependency>
<!-- ── Batik SVG (groupId=batik for the 1.6 release) ── -->
<!-- batik.jar (aggregate) is not published; individual modules cover all needed classes -->
<dependency>
<groupId>batik</groupId><artifactId>batik-awt-util</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-bridge</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-css</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-dom</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-ext</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-extension</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-gui-util</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-gvt</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-parser</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-rasterizer</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-script</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-squiggle</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-svg-dom</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-svggen</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-swing</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-transcoder</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-util</artifactId><version>1.6</version>
</dependency>
<dependency>
<groupId>batik</groupId><artifactId>batik-xml</artifactId><version>1.6</version>
</dependency>
<!-- ── XSLT / Saxon ── -->
<!--
saxon.jar contains the old com.icl.saxon 6.x API which is NOT on Maven Central.
Kept as system scope until the Saxon 6.x API usage is migrated.
-->
<dependency>
<groupId>com.vendor</groupId><artifactId>saxon</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/saxon.jar</systemPath>
</dependency>
<!-- Saxon 9 HE -->
<dependency>
<groupId>net.sf.saxon</groupId><artifactId>Saxon-HE</artifactId><version>9.9.1-8</version>
</dependency>
<!-- ── Schema validation ── -->
<!--
jing/trang 20091111 on Maven Central expose a different MultiInputFormat API
and are missing com.thaiopensource.relaxng.output.common.Name.
Kept as system scope until the source is updated to the new API.
-->
<dependency>
<groupId>com.vendor</groupId><artifactId>jing</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/jing.jar</systemPath>
</dependency>
<dependency>
<groupId>com.vendor</groupId><artifactId>trang</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/trang.jar</systemPath>
</dependency>
<!-- ── PDF / FOP ── -->
<dependency>
<groupId>fop</groupId><artifactId>fop</artifactId><version>0.20.5</version>
</dependency>
<dependency>
<groupId>avalon-framework</groupId><artifactId>avalon-framework</artifactId><version>4.1.5</version>
</dependency>
<!-- ── Web services ── -->
<dependency>
<groupId>soap</groupId><artifactId>soap</artifactId><version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId><artifactId>javax.xml.soap-api</artifactId><version>1.3.5</version>
</dependency>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId><artifactId>saaj-impl</artifactId><version>1.3.28</version>
</dependency>
<dependency>
<groupId>wsdl4j</groupId><artifactId>wsdl4j</artifactId><version>1.6.3</version>
</dependency>
<!-- ── Email ── -->
<dependency>
<groupId>javax.mail</groupId><artifactId>mail</artifactId><version>1.4.7</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId><artifactId>activation</artifactId><version>1.1.1</version>
</dependency>
<!-- ── XML security ── -->
<!--
xmlsec 1.1.0 is kept as-is: the Canonicalizer API changed incompatibly
in xmlsec 2.x (canonicalizeXPathNodeSet/canonicalizeSubtree now require
an explicit OutputStream and use Set<Node> instead of NodeList), which
would require substantial changes to XMLUtilities.java.
-->
<dependency>
<groupId>xml-security</groupId><artifactId>xmlsec</artifactId><version>1.1.0</version>
</dependency>
<!-- ── Apache Commons ── -->
<!--
commons-collections is used directly by ErrorList.java but was not declared
in the original build.xml (it arrived as a transitive dependency of other JARs).
-->
<dependency>
<groupId>commons-collections</groupId><artifactId>commons-collections</artifactId><version>3.2.2</version>
</dependency>
<!--
commons-logging 1.3.4: removes the log4j 1.x optional transitive
dependency. log4j 1.2.12 carried CVE-2019-17571 (CVSS 9.8),
CVE-2022-23302, CVE-2022-23305, CVE-2022-23307.
The explicit exclusion ensures log4j 1.x is never pulled in even
via other transitives.
-->
<dependency>
<groupId>commons-logging</groupId><artifactId>commons-logging</artifactId><version>1.3.4</version>
<exclusions>
<exclusion><groupId>log4j</groupId><artifactId>log4j</artifactId></exclusion>
</exclusions>
</dependency>
<dependency>
<!-- commons.jar contains org.apache.commons.cli -->
<groupId>commons-cli</groupId><artifactId>commons-cli</artifactId><version>1.0</version>
</dependency>
<!-- commons-net 3.11.1: FTPClient/FTPReply API preserved; CVE fixes -->
<dependency>
<groupId>commons-net</groupId><artifactId>commons-net</artifactId><version>3.11.1</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId><artifactId>commons-httpclient</artifactId><version>3.0.1</version>
</dependency>
<dependency>
<groupId>bsf</groupId><artifactId>bsf</artifactId><version>2.4.0</version>
</dependency>
<!-- ── WebDAV ── -->
<dependency>
<groupId>slide</groupId><artifactId>slide-webdavlib</artifactId><version>2.1</version>
</dependency>
<!-- ── Office file formats ── -->
<dependency>
<groupId>poi</groupId><artifactId>poi</artifactId><version>2.5.1</version>
</dependency>
<dependency>
<groupId>xmlbeans</groupId><artifactId>xbean</artifactId><version>2.2.0</version>
</dependency>
<dependency>
<groupId>xmlbeans</groupId><artifactId>xbean_xpath</artifactId><version>2.2.0</version>
</dependency>
<!-- ── Scripting ── -->
<dependency>
<groupId>rhino</groupId><artifactId>js</artifactId><version>1.7R2</version>
</dependency>
<!-- ── Syndication ── -->
<dependency>
<groupId>rome</groupId><artifactId>rome</artifactId><version>0.9</version>
</dependency>
<dependency>
<!-- rome-fetcher 0.9 not on Central; using 1.0 (compatible API) -->
<groupId>rome</groupId><artifactId>rome-fetcher</artifactId><version>1.0</version>
</dependency>
<!-- ── UI / Look-and-Feel ── -->
<dependency>
<groupId>com.toedter</groupId><artifactId>jcalendar</artifactId><version>1.3.2</version>
</dependency>
<dependency>
<!-- looks-1.3rc.jar superseded; looks.jar 2.1.3 → jgoodies-looks 2.7.0 -->
<groupId>com.jgoodies</groupId><artifactId>jgoodies-looks</artifactId><version>2.7.0</version>
</dependency>
<dependency>
<groupId>com.incors.plaf</groupId><artifactId>kunststoff</artifactId><version>2.0.2</version>
</dependency>
<!--
l2fprod-common-directorychooser and l2fprod-common-totd are not published
to Maven Central under any known coordinate. Kept as system scope.
-->
<dependency>
<groupId>com.vendor</groupId><artifactId>l2fprod-common-directorychooser</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/l2fprod-common-directorychooser.jar</systemPath>
</dependency>
<dependency>
<groupId>com.vendor</groupId><artifactId>l2fprod-common-totd</artifactId><version>local</version>
<scope>system</scope><systemPath>${lib}/l2fprod-common-totd.jar</systemPath>
</dependency>
<!-- ── Help system ── -->
<dependency>
<groupId>javax.help</groupId><artifactId>javahelp</artifactId><version>2.0.05</version>
</dependency>
<!-- ════════════════════════════
Project-local repository
(not on Maven Central)
════════════════════════════ -->
<!-- bounce UI library (org.bounce, not published to Central) -->
<dependency>
<groupId>org.bounce</groupId><artifactId>bounce</artifactId><version>0.14</version>
</dependency>
<!-- MDateSelector date-entry widget (not published to Central) -->
<dependency>
<groupId>com.mseries</groupId><artifactId>MDateSelector</artifactId><version>1.0</version>
</dependency>
<!-- Apple Extensions stub for compiling on non-macOS JDKs -->
<dependency>
<groupId>com.apple</groupId><artifactId>AppleJavaExtensions</artifactId><version>1.4</version>
</dependency>
<!-- JDIC – Java Desktop Integration Components (abandoned) -->
<dependency>
<groupId>org.jdesktop.jdic</groupId><artifactId>jdic</artifactId><version>0.9.5</version>
</dependency>
<!-- JISP B-tree index library (not published to Central) -->
<dependency>
<groupId>com.coyotegulch.jisp</groupId><artifactId>jisp</artifactId><version>3.0</version>
</dependency>
<!-- ════════════════════════════
Test dependencies
════════════════════════════ -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>