Слияние docx4j 17.3.5 в wordpdf-core и форк FO-рендерера 2.11-docx4j.8 в реактор
- wordpdf-core/src/main/java впитаны исходники docx4j-core, -export-fo, -chart-render, -JAXB-ReferenceImpl, -copy, -generated-objects (17.3.5) + сгенерированная XJC JAXB-модель; ресурсы — тем же путём; артефакты группы org.docx4j из внешних репозиториев больше не подключаются - vendor/fop: форк docx4j-fo-renderer 2.11-docx4j.8 (util/events/core/fop) собирается в реакторе вместо jar из Nexus - docx2fo.xslt перевендорен со стилем 17.3.5, оба AUDIT-FIX-патча перенесены; дрейф-гейт vendoredXsltTracksJarCopy зелёный - upstream-тесты docx4j перенесены в src/test/java/org (658 классов, вне гейта); execution upstream-docx4j-tests в профиле upstream-tests (./mise.sh run upstream-tests, в pr.yml non-blocking шаг): 3470 тестов, 3457 зелёных, 13 красных — категории окружения/калибровки хоста и следствий слияния classpath задокументированы в docs/agent/testing.md - surefire: провайдер SLF4J фиксируется коротким slf4j.provider по execution; перенесён upstream logback.xml (root=DEBUG без конфига ломает visitor-экспорт VML); upstream-форки пинят JDK JAXP-фабрики; PMD/JaCoCo исключают org/** - wordpdf-app: без изменений кода (зависит от слитого ядра); тесты 44/44 - документация синхронизирована (AGENTS.md, README, docs/agent/*), mise task upstream-tests
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<description>Конвертация docx в PDF (docx4j + Apache FOP, без LibreOffice/Aspose), шрифты в jar</description>
|
||||
|
||||
<modules>
|
||||
<module>vendor/fop</module>
|
||||
<module>wordpdf-core</module>
|
||||
<module>wordpdf-app</module>
|
||||
</modules>
|
||||
@@ -21,8 +22,12 @@
|
||||
<maven.compiler.release>17</maven.compiler.release>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
<!-- docx4j: последняя стабильная версия на Maven Central -->
|
||||
<docx4j.version>17.3.2</docx4j.version>
|
||||
<!-- docx4j 17.3.5: исходники слиты в wordpdf-core (пакеты org.docx4j.*), артефакт
|
||||
из Central не используется; свойство — версия для фильтрации
|
||||
org/docx4j/.../docx4j_version.properties в jar'ах ядра -->
|
||||
<docx4j.version>17.3.5</docx4j.version>
|
||||
<!-- форк FO-рендерера (plutext/xmlgraphics-fop), собирается из исходников vendor/fop -->
|
||||
<docx4j.fo.renderer.version>2.11-docx4j.8</docx4j.fo.renderer.version>
|
||||
<!-- commons-compress: версию декларирует docx4j-core 17.3.2 (1.28.0);
|
||||
не завышать — версия привязана к docx4j, а не к свежести -->
|
||||
<commons-compress.version>1.28.0</commons-compress.version>
|
||||
@@ -60,22 +65,285 @@
|
||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||
<version>${springdoc.version}</version>
|
||||
</dependency>
|
||||
<!-- ===== слитый docx4j 17.3.5 (исходники в wordpdf-core/src/main/java/org/docx4j):
|
||||
прямые compile-зависимости его классов; версии — из upstream-пом 17.3.5 ===== -->
|
||||
<!-- JAXB (ReferenceImpl-путь): реализацию выбирает service-файл jaxb-runtime -->
|
||||
<dependency>
|
||||
<groupId>org.docx4j</groupId>
|
||||
<artifactId>docx4j-core</artifactId>
|
||||
<version>${docx4j.version}</version>
|
||||
<groupId>jakarta.xml.bind</groupId>
|
||||
<artifactId>jakarta.xml.bind-api</artifactId>
|
||||
<version>4.0.5</version>
|
||||
</dependency>
|
||||
<!-- Реализация JAXB (без javax-пакетов) -->
|
||||
<dependency>
|
||||
<groupId>org.docx4j</groupId>
|
||||
<artifactId>docx4j-JAXB-ReferenceImpl</artifactId>
|
||||
<version>${docx4j.version}</version>
|
||||
<groupId>org.glassfish.jaxb</groupId>
|
||||
<artifactId>jaxb-runtime</artifactId>
|
||||
<version>4.0.9</version>
|
||||
</dependency>
|
||||
<!-- Экспорт в PDF через Apache FOP (XSL-FO) -->
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jaxb</groupId>
|
||||
<artifactId>jaxb-core</artifactId>
|
||||
<version>4.0.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jaxb</groupId>
|
||||
<artifactId>txw2</artifactId>
|
||||
<version>4.0.9</version>
|
||||
</dependency>
|
||||
<!-- рантайм плагинов XJC (-Xcopy и т.п.), на которые ссылается модель -->
|
||||
<dependency>
|
||||
<groupId>org.jvnet.jaxb</groupId>
|
||||
<artifactId>jaxb-plugins-runtime</artifactId>
|
||||
<version>4.0.13</version>
|
||||
</dependency>
|
||||
<!-- перепакованные под org.plutext schemas-части (SVG/1.1, XSL-FO) -->
|
||||
<dependency>
|
||||
<groupId>org.plutext</groupId>
|
||||
<artifactId>jaxb-svg11</artifactId>
|
||||
<version>11.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.plutext</groupId>
|
||||
<artifactId>jaxb-xslfo</artifactId>
|
||||
<version>11.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.engio</groupId>
|
||||
<artifactId>mbassador</artifactId>
|
||||
<version>1.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>3.21.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.22.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-collections4</artifactId>
|
||||
<version>4.6.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zaxxer</groupId>
|
||||
<artifactId>SparseBitSet</artifactId>
|
||||
<version>1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>xmlgraphics-commons</artifactId>
|
||||
<version>2.11</version>
|
||||
</dependency>
|
||||
<!-- перепакованный Xalan (org.docx4j.org.apache.xalan), нужен XPathEnhancer -->
|
||||
<dependency>
|
||||
<groupId>org.docx4j.org.apache</groupId>
|
||||
<artifactId>xalan-interpretive</artifactId>
|
||||
<version>11.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.docx4j.org.apache</groupId>
|
||||
<artifactId>xalan-serializer</artifactId>
|
||||
<version>11.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.antlr</groupId>
|
||||
<artifactId>antlr-runtime</artifactId>
|
||||
<version>3.5.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.antlr</groupId>
|
||||
<artifactId>stringtemplate</artifactId>
|
||||
<version>3.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.checkerframework</groupId>
|
||||
<artifactId>checker-qual</artifactId>
|
||||
<version>3.54.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.errorprone</groupId>
|
||||
<artifactId>error_prone_annotations</artifactId>
|
||||
<version>2.3.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>1.23.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.thoughtworks.qdox</groupId>
|
||||
<artifactId>qdox</artifactId>
|
||||
<version>1.12.1</version>
|
||||
</dependency>
|
||||
<!-- Batik: экспорт SVG/OMML-формулей (jeuclid) и chart-render -->
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-anim</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-awt-util</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-bridge</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-codec</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-dom</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-extension</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-gvt</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-svggen</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-transcoder</artifactId>
|
||||
<version>1.19</version>
|
||||
</dependency>
|
||||
<!-- jeuclid-fop тащит оригинальный Apache FOP и старый Batik —
|
||||
исключаем (как upstream docx4j-export-fo): единственный FOP на
|
||||
classpath — форк docx4j-fo-renderer-core из vendor/fop -->
|
||||
<dependency>
|
||||
<groupId>de.rototor.jeuclid</groupId>
|
||||
<artifactId>jeuclid-fop</artifactId>
|
||||
<version>3.1.14</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>fop</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>fop-core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>xmlgraphics-commons</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis-ext</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.xmlgraphics</groupId>
|
||||
<artifactId>batik-all</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>batik</groupId>
|
||||
<artifactId>batik-all</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- форк FO-рендерера: reactor-модуль vendor/fop, НЕ артефакт из Central -->
|
||||
<dependency>
|
||||
<groupId>org.docx4j</groupId>
|
||||
<artifactId>docx4j-export-fo</artifactId>
|
||||
<version>${docx4j.version}</version>
|
||||
<artifactId>docx4j-fo-renderer</artifactId>
|
||||
<version>${docx4j.fo.renderer.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.docx4j</groupId>
|
||||
<artifactId>docx4j-fo-renderer-events</artifactId>
|
||||
<version>${docx4j.fo.renderer.version}</version>
|
||||
</dependency>
|
||||
<!-- ===== test: набор upstream-тестов docx4j (профиль upstream-tests) ===== -->
|
||||
<!-- upstream-тесты — JUnit 4; проект — JUnit 6, мост — vintage-движок той же линии -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.vintage</groupId>
|
||||
<artifactId>junit-vintage-engine</artifactId>
|
||||
<version>${junit.version}</version>
|
||||
</dependency>
|
||||
<!-- upstream-тесты компилируются и работают против logback-бэкенда
|
||||
(несколько классов достают LoggerContext / ListAppender); проект при
|
||||
этом фиксирует slf4j-simple системным свойством slf4j.provider.
|
||||
Собственной managed-записи logback здесь намеренно нет: она
|
||||
затеняет Boot-BOM, а classic вразнобой с core из BOM роняет
|
||||
fat-jar (NoSuchMethodError initCollisionMaps); версия — из BOM -->
|
||||
<dependency>
|
||||
<groupId>net.sf.saxon</groupId>
|
||||
<artifactId>Saxon-HE</artifactId>
|
||||
<version>9.9.0-2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tika</groupId>
|
||||
<artifactId>tika-core</artifactId>
|
||||
<version>3.2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.12.2</version>
|
||||
</dependency>
|
||||
<!-- генерация флекс-расстановки в тестах export-fo -->
|
||||
<dependency>
|
||||
<groupId>net.sf.offo</groupId>
|
||||
<artifactId>fop-hyph</artifactId>
|
||||
<version>2.0</version>
|
||||
</dependency>
|
||||
<!-- docx4j-markdown (его main-код перенесён в test-дерево ядра) -->
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark-ext-gfm-tables</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark-ext-gfm-strikethrough</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark-ext-task-list-items</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark-ext-footnotes</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.commonmark</groupId>
|
||||
<artifactId>commonmark-ext-yaml-front-matter</artifactId>
|
||||
<version>0.30.0</version>
|
||||
</dependency>
|
||||
<!-- Прямая зависимость ядра (DependencyGuard) + нижний порог
|
||||
docx4j 17.3.2 — 1.25.0; в Boot-BOM 4.1.1 не управляется -->
|
||||
|
||||
Reference in New Issue
Block a user