<?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.ohaotian.atp.admin</groupId>
        <artifactId>ability-portal</artifactId>
        <version>2.3.0-fix-SNAPSHOT</version>
    </parent>


    <artifactId>ability-admin</artifactId>
    <version>${atp.version}</version>
    <name>ability-admin</name>
    <description>门户后台</description>


    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>

    <!-- 管理依赖 -->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Greenwich.SR3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>

        <dependency>
            <groupId>com.alibaba.boot</groupId>
            <artifactId>nacos-config-spring-boot-starter</artifactId>
            <version>${nacos.config.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>spring-boot-starter-logging</artifactId>
                    <groupId>org.springframework.boot</groupId>
                </exclusion>
            </exclusions>
        </dependency>


        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-auth-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <dependency>
            <groupId>com.ohaotian.atp.base</groupId>
            <artifactId>ability-admin-common</artifactId>
            <version>${atp.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>spring-boot-starter-data-redis</artifactId>
                    <groupId>org.springframework.boot</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-data-redis</artifactId>
                    <groupId>org.springframework.data</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>jedis</artifactId>
                    <groupId>redis.clients</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>jackson-databind</artifactId>
                    <groupId>com.fasterxml.jackson.core</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>mybatis</artifactId>
                    <groupId>org.mybatis</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>log4j-core</artifactId>
                    <groupId>org.apache.logging.log4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>log4j-slf4j-impl</artifactId>
                    <groupId>org.apache.logging.log4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>log4j-jcl</artifactId>
                    <groupId>org.apache.logging.log4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>fastjson</artifactId>
                    <groupId>com.alibaba</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-ip-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-token-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--优先级插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-priority-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--路由插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-route-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--落地校验插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-hparty-check-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--G3Plus落地校验插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-g3plus-hparty-check</artifactId>
            <version>${atp.version}</version>
        </dependency>


        <!--multi落地校验插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-multi-hparty-check-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--京东落地校验插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-jd-hparty-check-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!--oauth2校验插件-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-oauth2-plugin</artifactId>
            <version>${atp.version}</version>
        </dependency>

        <!-- 日志平台-->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-log-platform</artifactId>
            <version>${atp.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>log4j-api</artifactId>
                    <groupId>org.apache.logging.log4j</groupId>
                </exclusion>
                <exclusion>
                    <groupId>com.ohaotian</groupId>
                    <artifactId>lombok</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>bcprov-jdk15on</artifactId>
                    <groupId>org.bouncycastle</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- 接口平台前端 -->
        <dependency>
            <groupId>com.ohaotian.atp.plugin</groupId>
            <artifactId>admin-pisces-platform</artifactId>
            <version>${atp.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>tomcat-util</artifactId>
                    <groupId>org.apache.tomcat</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk15on</artifactId>
            <version>1.63</version>
        </dependency>

        <!--统一权限控制层-->
        <!-- 权限统一抽象层更改增加配置超时时间 -->
        <!-- 1.0.3 实现中台的cas共享-->
        <dependency>
            <groupId>com.ohaotian</groupId>
            <artifactId>ohaotian-authority-spring-boot-starter</artifactId>
            <version>1.0.1</version>
            <exclusions>
                <exclusion>
                    <groupId>org.jasig.cas.client</groupId>
                    <artifactId>cas-client-core</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>fastjson</artifactId>
                    <groupId>com.alibaba</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 石家庄版本依赖，如果提供给石家庄需要加此依赖 -->
        <!--        <dependency>-->
        <!--            <groupId>com.ohaotian</groupId>-->
        <!--            <artifactId>project-sjz</artifactId>-->
        <!--            <version>1.0.0</version>-->
        <!--            <exclusions>-->
        <!--                <exclusion>-->
        <!--                    <groupId>org.jasig.cas.client</groupId>-->
        <!--                    <artifactId>cas-client-core</artifactId>-->
        <!--                </exclusion>-->
        <!--            </exclusions>-->
        <!--        </dependency>-->

        <!-- cas -->
        <dependency>
            <groupId>org.jasig.cas.client</groupId>
            <artifactId>cas-client-core</artifactId>
            <version>3.4.1</version>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-annotations</artifactId>
            <version>4.8.6</version>
            <scope>compile</scope>
        </dependency>
        <!--引入本地soap包-->
        <!--        <dependency>-->
        <!--            <groupId>org.jasig.cas.client</groupId>-->
        <!--            <artifactId>cas-client-core</artifactId>-->
        <!--            <version>3.5.1</version>-->
        <!--            <scope>system</scope>-->
        <!--            <systemPath>${project.basedir}/../lib/cas-client-core-3.5.1.jar</systemPath>-->
        <!--        </dependency>-->


        <dependency>
            <groupId>org.hibernate.validator</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>6.1.5.Final</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.owasp.encoder/encoder -->
        <dependency>
            <groupId>org.owasp.encoder</groupId>
            <artifactId>encoder</artifactId>
            <version>1.2.3</version>
        </dependency>

    </dependencies>

    <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/libs-milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <profiles>
        <profile>
            <id>local</id>
            <properties>
                <activatedProperties>local</activatedProperties>
            </properties>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>nacos</id>
            <properties>
                <activatedProperties>nacos</activatedProperties>
            </properties>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>apollo</id>
            <properties>
                <activatedProperties>apollo</activatedProperties>
            </properties>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
        </profile>
    </profiles>


    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <exclude>lib/*.jar</exclude>
                    <exclude>public/**</exclude>
                    <exclude>public-simple/**</exclude>
                    <exclude>public-context/**</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>lib/*.jar</include>
                    <include>public/**</include>
                    <include>public-simple/**</include>
                    <include>public-context/**</include>
                </includes>
            </resource>
        </resources>

        <finalName>ability-admin-2.0.1</finalName>
        <plugins>
            <!--            导致部署项目无法映入import-->
            <!--            <plugin>-->
            <!--                <groupId>org.springframework.boot</groupId>-->
            <!--                <artifactId>spring-boot-maven-plugin</artifactId>-->
            <!--                <configuration>-->
            <!--                    <includeSystemScope>true</includeSystemScope>-->
            <!--                </configuration>-->
            <!--            </plugin>-->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.9.1</version>
                <executions>
                    <execution>
                        <id>timestamp-property</id>
                        <goals>
                            <goal>timestamp-property</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <name>current.time</name>
                    <pattern>yyyyMMdd-HHmmss</pattern>
                    <timeZone>GMT+8</timeZone>
                    <regex/>
                    <source/>
                    <value/>
                </configuration>
            </plugin>

            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>utf-8</encoding>
                    <useDefaultDelimiters>true</useDefaultDelimiters>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
