<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
<#assign bDynamicDS=false>
<#list sys.getAllPSDataEntities() as entity>
    <#if (entity.getStorageMode()==1 || entity.getStorageMode()==2) && entity.getDSLink()!='DEFAULT'>
        <#assign bDynamicDS=true>
        <#break>
    </#if>
</#list>
<?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>

    <artifactId>${pub.getCodeName()?lower_case}-dependencies</artifactId>
    <groupId>${pub.getPKGCodeName()?lower_case}</groupId>
    <version>${pub.getVersionString()?default("V0.0.1_alpha")}</version>
    <name>${pub.getCodeName()?lower_case?cap_first} Dependencies</name>
    <packaging>pom</packaging>
    <description>${pub.getCodeName()?lower_case?cap_first} Dependencies</description>

    <!--  Spring Boot -->
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.1.RELEASE</version>
    </parent>

    <#--  properties, usually record jars version constants  -->
    <properties>
        <!--  Spring Cloud Alibaba(2.2.x.RELEASE) & Spring Cloud(Spring Cloud Greenwich) & Spring Boot(2.2.x.RELEASE) compatibility -->
        <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version>

        <spring-cloud-openfeign.version>2.2.1.RELEASE</spring-cloud-openfeign.version>

        <!--  Alibaba Druid  -->
        <alibaba-druid.version>1.1.16</alibaba-druid.version>

        <!--  Mybatis Plus -->
        <mybatis-plus.version>3.3.1</mybatis-plus.version>
        <mybatis-plus-dynamic-datasource.version>3.0.0</mybatis-plus-dynamic-datasource.version>

        <!--  Liquibase -->
        <liquibase.version>3.6.3</liquibase.version>

        <!--  Swagger2 -->
        <springfox-swagger.version>2.9.2</springfox-swagger.version>

        <!--  JBPM+Drools -->
        <drools-version>7.23.0.Final</drools-version>

        <!--  Error -->
        <zalando-problem-spring-web.version>0.23.0</zalando-problem-spring-web.version>

        <!--  Security  -->
        <spring-cloud-security.version>2.1.1.RELEASE</spring-cloud-security.version>

        <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
        <!--logstash-logback-encoder-->
        <logstash.version>5.2</logstash.version>

        <!--Zuul网关-->
        <spring-cloud-starter-netflix-zuul.version>2.2.1.RELEASE</spring-cloud-starter-netflix-zuul.version>

        <!--MapStruct高性能属性映射工具-->
        <mapstruct.version>1.3.0.Final</mapstruct.version>

        <!--Java Web Token-->
        <jsonwebtoken-jjwt.version>0.9.1</jsonwebtoken-jjwt.version>

        <!--Liquibase数据库版本更新工具-->
        <liquibase.version>3.8.7</liquibase.version>

        <!--H2内存数据库-->
        <h2.version>1.4.200</h2.version>

        <!--caffeine缓存-->
        <caffeine-cache.version>2.6.0</caffeine-cache.version>

        <!--反序列化工具-->
        <kryo.version>4.0.2</kryo.version>

        <!--httpClient -->
        <openfeign-httpclient.version>11.0</openfeign-httpclient.version>

        <!--baomidou-jobs定时服务 -->
        <baomidou-jobs.version>1.0.3</baomidou-jobs.version>

        <!-- eureka微服务注册中心 -->
        <eureka-client.version>2.2.1.RELEASE</eureka-client.version>

        <!-- 阿里sentinel熔断器 -->
        <alibaba-sentinel.version>2.1.1.RELEASE</alibaba-sentinel.version>

        <!-- 阿里seata分布式事务 -->
        <alibaba-seata.version>1.3.0</alibaba-seata.version>

        <#if sys.getAllPSSystemDBConfigs()??>
        <#list sys.getAllPSSystemDBConfigs() as dbConfig>
            <#if dbConfig.getDBType()=='MYSQL5'>
            <#elseif dbConfig.getDBType()=='ORACLE'>
        <oracle.version>11.2.0.3</oracle.version>
            <#elseif dbConfig.getDBType()=='POSTGRESQL'>
        <postgresql.version>42.2.6</postgresql.version>
            </#if>
        </#list>
        </#if>

    </properties>

    <#--  dependencies,just for statement, manage the version of jars   -->
    <dependencyManagement>
        <dependencies>
            <!--  Alibaba Cloud -->
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${r'${spring-cloud-alibaba.version}'}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!--  Spring Cloud -->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-openfeign-dependencies</artifactId>
                <version>${r'${spring-cloud-openfeign.version}'}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!--  Alibaba Druid -->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
                <version>${r'${alibaba-druid.version}'}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid-spring-boot-starter</artifactId>
                <version>${r'${alibaba-druid.version}'}</version>
            </dependency>

            <!--  Mybatis Plus  -->
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${r'${mybatis-plus.version}'}</version>
            </dependency>
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
                <version>${r'${mybatis-plus-dynamic-datasource.version}'}</version>
            </dependency>

            <!--  Liquibase  -->
            <dependency>
                <groupId>org.liquibase</groupId>
                <artifactId>liquibase-core</artifactId>
                <version>${r'${liquibase.version}'}</version>
            </dependency>

            <!--  H2  -->
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>${r'${h2.version}'}</version>
            </dependency>

            <!--  Swagger2  -->
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-swagger2</artifactId>
                <version>${r'${springfox-swagger.version}'}</version>
            </dependency>
            <dependency>
                <groupId>io.springfox</groupId>
                <artifactId>springfox-swagger-ui</artifactId>
                <version>${r'${springfox-swagger.version}'}</version>
            </dependency>

            <!--  JBPM  -->
            <dependency>
                <groupId>org.jbpm</groupId>
                <artifactId>jbpm-flow-builder</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>
            <dependency>
                <groupId>org.jbpm</groupId>
                <artifactId>jbpm-bpmn2</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>

            <!--  Drools  -->
            <dependency>
                <groupId>org.drools</groupId>
                <artifactId>drools-compiler</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>
            <dependency>
                <groupId>org.drools</groupId>
                <artifactId>drools-core</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>
            <dependency>
                <groupId>org.kie</groupId>
                <artifactId>kie-spring</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>
            <dependency>
                <groupId>org.kie</groupId>
                <artifactId>kie-api</artifactId>
                <version>${r'${drools-version}'}</version>
            </dependency>

            <!--  Error  -->
            <#--<dependency>-->
                <#--<groupId>org.zalando</groupId>-->
                <#--<artifactId>problem-spring-web</artifactId>-->
                <#--<version>${r'${zalando-problem-spring-web.version}'}</version>-->
            <#--</dependency>-->

            <!--  Security  -->
            <#--<dependency>-->
                <#--<groupId>org.springframework.cloud</groupId>-->
                <#--<artifactId>spring-cloud-starter-security</artifactId>-->
                <#--<version>${r'${spring-cloud-security.version}'}</version>-->
            <#--</dependency>-->
            <dependency>
                <groupId>net.logstash.logback</groupId>
                <artifactId>logstash-logback-encoder</artifactId>
                <version>${r'${logstash.version}'}</version>
            </dependency>

            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
                <version>${r'${spring-cloud-starter-netflix-zuul.version}'}</version>
            </dependency>

            <dependency>
                <groupId>org.mapstruct</groupId>
                <artifactId>mapstruct-jdk8</artifactId>
                <version>${r'${mapstruct.version}'}</version>
            </dependency>
            <dependency>
                <groupId>org.mapstruct</groupId>
                <artifactId>mapstruct-processor</artifactId>
                <version>${r'${mapstruct.version}'}</version>
            </dependency>

            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-security</artifactId>
                <version>${r'${spring-cloud-security.version}'}</version>
            </dependency>

            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt</artifactId>
                <version>${r'${jsonwebtoken-jjwt.version}'}</version>
            </dependency>

            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid-spring-boot-starter</artifactId>
                <version>${r'${alibaba-druid.version}'}</version>
            </dependency>

             <dependency>
                <groupId>org.zalando</groupId>
                <artifactId>problem-spring-web</artifactId>
                <version>${r'${zalando-problem-spring-web.version}'}</version>
            </dependency>


            <dependency>
                <groupId>com.github.ben-manes.caffeine</groupId>
                <artifactId>caffeine</artifactId>
                <version>${r'${caffeine-cache.version}'}</version>
            </dependency>

            <dependency>
                <groupId>com.esotericsoftware</groupId>
                <artifactId>kryo-shaded</artifactId>
                <version>${r'${kryo.version}'}</version>
            </dependency>

            <dependency>
                <groupId>io.github.openfeign</groupId>
                <artifactId>feign-httpclient</artifactId>
                <version>${r'${openfeign-httpclient.version}'}</version>
            </dependency>

            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>jobs-spring-boot-starter</artifactId>
                <version>${r'${baomidou-jobs.version}'}</version>
            </dependency>

            <#if pub.isEnableGlobalTransaction?? && pub.isEnableGlobalTransaction()?? && pub.isEnableGlobalTransaction()==true>
            <!--  阿里seata分布式事务 -->
            <dependency>
                <groupId>io.seata</groupId>
                <artifactId>seata-spring-boot-starter</artifactId>
                <version>${r'${alibaba-seata.version}'}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.alibaba</groupId>
                        <artifactId>druid</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
                <version> ${r'${spring-cloud-alibaba.version}'}</version>
                <exclusions>
                    <exclusion>
                        <groupId>io.seata</groupId>
                        <artifactId>seata-spring-boot-starter</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            </#if>

        </dependencies>
    </dependencyManagement>


    <dependencies>
        <!--  Spring Boot -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--  Spring Cloud -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>

        <!--  Alibaba Nacos -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>

        <!--  Alibaba Sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
            <version>${r'${alibaba-sentinel.version}'}</version>
        </dependency>

        <!--  Lombok -->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>

        <!--  Httpclient -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>

        <!--  阿里Druid数据源 -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
        </dependency>

        <!--  H2内存库 -->
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
        </dependency>

        <!--  eureka服务注册中心 -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
            <version>${r'${eureka-client.version}'}</version>
        </dependency>

        <#if sys.getAllPSSystemDBConfigs()??>
            <#list sys.getAllPSSystemDBConfigs() as dbConfig>
                <#if dbConfig.getDBType()=='MYSQL5'>
        <!--  MySQL驱动包 -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
                <#elseif dbConfig.getDBType()=='ORACLE'>
        <!--  Oracle驱动包 -->
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>${r'${oracle.version}'}</version>
        </dependency>
                <#elseif dbConfig.getDBType()=='POSTGRESQL'>
        <!--  PostgreSQL驱动包 -->
         <dependency>
             <groupId>org.postgresql</groupId>
             <artifactId>postgresql</artifactId>
             <version>${r'${postgresql.version}'}</version>
         </dependency>
                </#if>
            </#list>
        </#if>

        <#if bDynamicDS>
        <!--  mp动态数据源 -->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
        </dependency>
        </#if>

    </dependencies>

</project>