Commit 1d031b0
committed
Exclude legacy XML API dependencies and use java.xml module instead
Java 9 and higher provide the standard XML APIs (javax.xml.parsers,
org.w3c.dom, org.xml.sax, etc.) in the java.xml module. Several
dependencies in the project depended directly or transitively on older
versions of these APIs via artifacts such as xml-apis:xml-apis,
xml-apis:xml-apis-ext and xerces:xmlParserAPIs. When both the JDK and a
dependency define the same package, certain compilers, especially the
Eclipse Java Compiler (ECJ), fail with errors such as "X is accessible
from more than one module: javax.xml, <unnamed>".
Ensure that Maven does not include the legacy artifacts
xml-apis:xml-apis, xml-apis:xml-apis-ext, xml-apis:xmlParserAPIs or
xerces:xmlParserAPIs; but relies on the java.xml module instead
(GeoNetwork requires at least Java 11).
Update xom:xom from 1.1 to 1.3.9, which no longer bundles org.w3c.dom
classes and improves compatibility with more JDK versions (see
https://xom.nu/history.html).
Update jaxen:jaxen from to 1.1.4 to 1.2.0, which no longer bundles
org.w3c.dom classes (see
https://www.cafeconleche.org/jaxen/releases.html).
Update commons-digester:commons-digester from 1.6 to 1.8.1, which marks
xml-apis as provided instead of compile (see
apache/commons-digester@05b3ffc988d8dad0db461b
fb35598a244e32f4f6).1 parent e667f25 commit 1d031b0
2 files changed
Lines changed: 71 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | 566 | | |
574 | 567 | | |
575 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
269 | 277 | | |
270 | 278 | | |
271 | 279 | | |
| |||
482 | 490 | | |
483 | 491 | | |
484 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
485 | 503 | | |
486 | 504 | | |
487 | 505 | | |
| |||
522 | 540 | | |
523 | 541 | | |
524 | 542 | | |
525 | | - | |
| 543 | + | |
526 | 544 | | |
527 | 545 | | |
528 | 546 | | |
| |||
621 | 639 | | |
622 | 640 | | |
623 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
624 | 652 | | |
625 | 653 | | |
626 | 654 | | |
627 | 655 | | |
628 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
629 | 664 | | |
630 | 665 | | |
631 | 666 | | |
| |||
850 | 885 | | |
851 | 886 | | |
852 | 887 | | |
853 | | - | |
| 888 | + | |
854 | 889 | | |
855 | 890 | | |
856 | 891 | | |
| |||
859 | 894 | | |
860 | 895 | | |
861 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
862 | 916 | | |
863 | 917 | | |
864 | 918 | | |
| |||
888 | 942 | | |
889 | 943 | | |
890 | 944 | | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
891 | 953 | | |
892 | 954 | | |
893 | 955 | | |
| |||
1196 | 1258 | | |
1197 | 1259 | | |
1198 | 1260 | | |
1199 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1200 | 1268 | | |
1201 | 1269 | | |
1202 | 1270 | | |
| |||
0 commit comments