<?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.hotent</groupId>
        <artifactId>eip</artifactId>
        <version>8.2.4</version>
    </parent>

    <artifactId>gxhd</artifactId>

    <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>
        <!-- Spring boot 测试 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- excel处理相关 -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>poi</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- ad同步 -->
        <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-core</artifactId>
        </dependency>
        <!-- 定时任务一 -->

        <!-- rest-auth-service 获取请求方法的授权信息 portal门户模块请不要依赖 只在 bpm-model bpm-runtime
            form,uc中依赖 -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>rest-auth-service</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- redis -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>redis</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <!-- mq -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>jms</artifactId>
            <version>${project.version}</version>
        </dependency>
        <!-- 其他模块使用I18nUtil的方法,获取国际化资源 -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>i18n</artifactId>
            <version>${project.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.hotent</groupId>
                    <artifactId>uc-api-impl</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- service
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>service</artifactId>
            <version>${project.version}</version>
        </dependency>-->
        <!-- table -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>table</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
        </dependency>
        <!-- uds数据同步 -->
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>uds-base</artifactId>
            <version>${parent.version}</version>
        </dependency>
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>form</artifactId>
            <version>8.2.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>job</artifactId>
            <version>8.2.4</version>
            <scope>compile</scope>
        </dependency>


        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>easyexcel</artifactId>
            <version>3.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>uc</artifactId>
            <version>8.2.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>portal</artifactId>
            <version>8.2.4</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.hotent</groupId>
            <artifactId>mail</artifactId>
            <version>8.2.4</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>

    <!-- 用于生成jar文件 -->
    <build>
        <finalName>uc</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>${spring.boot.version}</version>
                <configuration>
                    <mainClass>com.hotent.uc.Application</mainClass>
                    <layout>ZIP</layout>
                    <!-- excludeGroupIds 和 includeGroupIds 保持一致   -->
                    <!-- 排除的jar -->
                    <excludeGroupIds>
                        ${third-party-group-ids}
                    </excludeGroupIds>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                        <configuration>
                            <attach>false</attach>
                            <classifier>boot</classifier>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <!-- third-party jar into lib directory -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
                            <!-- excludeGroupIds 和 includeGroupIds 保持一致   -->
                            <!-- 导出jar的 groupId -->
                            <includeGroupIds>
                                ${third-party-group-ids}
                            </includeGroupIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.6</version>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <nonFilteredFileExtensions>
                        <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
                    </nonFilteredFileExtensions>
                </configuration>
            </plugin>
        </plugins>


    </build>

</project>