<?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-parent</artifactId>
        <version>2.2.0</version>
        <relativePath>../document-parent/pom.xml</relativePath>
    </parent>

<!--    <groupId>com.jxdinfo.document</groupId>-->
    <artifactId>document-common</artifactId>
    <version>2.2.0</version>

    <packaging>jar</packaging>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.13.2</version>
            <scope>test</scope>
        </dependency>
        <!--HussarException-->
        <dependency>
            <groupId>com.jxdinfo.hussar.support</groupId>
            <artifactId>hussar-support-exception</artifactId>
            <scope>provided</scope>
        </dependency>
        <!--提供@HussarTransactional注解-->
        <dependency>
            <groupId>com.jxdinfo.hussar.support.transaction</groupId>
            <artifactId>hussar-transaction-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.jxdinfo.hussar</groupId>
            <artifactId>hussar-authorization-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <!--文件存储组件-->
        <dependency>
            <groupId>com.jxdinfo.hussar.support.oss</groupId>
            <artifactId>hussar-oss-api</artifactId>
            <scope>provided</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.hussar</groupId>
            <artifactId>hussar-dataset-starter</artifactId>
        </dependency>
        <!-- 用于读取 JPEG EXIF Orientation，避免 ImageIO 报告的宽高与显示方向不一致 -->
        <dependency>
            <groupId>com.drewnoakes</groupId>
            <artifactId>metadata-extractor</artifactId>
            <version>2.18.0</version>
        </dependency>
    </dependencies>

    <build>
        <finalName>${project.artifactId}-${project.version}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>UTF-8</encoding>
                    <skip>true</skip>
                    <compilerArgs>
                        <arg>-parameters</arg>
                    </compilerArgs>
                </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>
            <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>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
        </resources>
    </build>



</project>
