<?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>

    <parent>
        <groupId>com.jxdinfo.document</groupId>
        <artifactId>document-word</artifactId>
        <version>2.2.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>document-word-server</artifactId>
    <version>2.2.0</version>
    <name>${project.artifactId}</name>

    <packaging>jar</packaging>

    <dependencies>
        <!-- 引入文档公共底层包 用于获取文档基础信息-->
        <dependency>
            <groupId>com.jxdinfo.document</groupId>
            <artifactId>document-common</artifactId>
            <scope>compile</scope>
        </dependency>

        <!-- 认证组件       -->
        <dependency>
            <groupId>com.jxdinfo.hussar</groupId>
            <artifactId>hussar-core-license</artifactId>
            <version>6.2.0</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.jxdinfo.document</groupId>
            <artifactId>document-word-api</artifactId>
        </dependency>

        <dependency>
            <groupId>com.jxdinfo.document</groupId>
            <artifactId>document-editor-core</artifactId>
        </dependency>

        <dependency>
            <groupId>com.jxdinfo.document</groupId>
            <artifactId>document-calculate</artifactId>
        </dependency>

        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.8.22</version>
        </dependency>

        <!-- 文件上传组件（WordDocExportServiceImpl 使用 FileItem/DiskFileItemFactory） -->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.4</version>
        </dependency>

        <!-- 富文本 HTML 解析（htmlToJson.js HtmlToJsonConverter 服务端转换，对应前端 DOMParser） -->
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.15.3</version>
        </dependency>

    </dependencies>

    <build>
        <finalName>${project.artifactId}-${project.version}</finalName>
        <plugins>
            <plugin>
                <groupId>com.jxdinfo</groupId>
                <artifactId>license-injector-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <id>license-inject</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>inject</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <moduleIds>
                        <moduleId>a775d647e0f64fdd8ad6db742f091ae4</moduleId>
                    </moduleIds>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>obfuscator-maven-plugin</artifactId>
                <version>8.0.0</version>
                <executions>
                    <execution>
                        <id>run-confusion</id>
                        <phase>package</phase>
                        <goals>
                            <goal>obfuscator</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
