<?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.tydic.ext.contract</groupId>
        <artifactId>pesapp-contract-ext</artifactId>
        <version>2.0.0-HSF-DEV-SNAPSHOT</version>
    </parent>

    <artifactId>pesapp-contract-ext-service</artifactId>
    <packaging>jar</packaging>
    <description>service中心服务</description>

    <dependencies>
        <!--项目依赖开始-->
        <dependency>
            <groupId>com.tydic.ext.contract</groupId>
            <artifactId>pesapp-contract-ext-api</artifactId>
            <!--
                1、删除<version>1.0.0</version>
                2、启用<version>${parent.version}-${env}</version>
            -->
            <version>2.0.0-HSF-DEV-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>com.tydic.contract</groupId>
            <artifactId>contract-management-service</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.tydic.contract</groupId>
                    <artifactId>contract-management-api</artifactId>
                </exclusion>
            </exclusions>
            <version>2.0.0-HSF-DEV-SNAPSHOT</version>

        </dependency>
        <!--项目依赖结束-->

        <!--插件依赖-->
        <dependency>
            <groupId>com.ohaotian.plugin</groupId>
            <artifactId>plugin-db</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ohaotian.plugin</groupId>
            <artifactId>plugin-base-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ohaotian.plugin</groupId>
            <artifactId>plugin-common</artifactId>
        </dependency>
        <!--插件依赖-->

        <!--SpringBoot-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions><!-- 去掉默认配置 -->
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency> <!-- 引入log4j2依赖 -->
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j2</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
        </dependency>
        <!--SpringBoot-->

        <!--Disconf-->
        <!--        <dependency>-->
        <!--            <groupId>com.ohaotian.plugin</groupId>-->
        <!--            <artifactId>plugin-config</artifactId>-->
        <!--        </dependency>-->
        <!--        <dependency>-->
        <!--            <groupId>com.baidu.disconf</groupId>-->
        <!--            <artifactId>disconf-client</artifactId>-->
        <!--        </dependency>-->

        <!--Apollo配置中心-->
        <dependency>
            <groupId>com.ctrip.framework.apollo</groupId>
            <artifactId>apollo-client</artifactId>
        </dependency>


        <!--SpringCloud-->
        <!--<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
        </dependency>-->
        <!--<dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>-->
        <!-- <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
         </dependency>-->
        <!-- <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-actuator</artifactId>
         </dependency>-->
        <!--  <dependency>
              <groupId>org.springframework.cloud</groupId>
              <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
          </dependency>-->
        <!--HSF-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-hsf</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-pandora</artifactId>
        </dependency>
        <!--HSF-->
        <!--SpringCloud-->

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

        <!--DB-->
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid-spring-boot-starter</artifactId>
        </dependency>

        <!--Redis-->
        <dependency>
            <groupId>redis.clients</groupId>
            <artifactId>jedis</artifactId>
        </dependency>
        <dependency>
            <groupId>io.protostuff</groupId>
            <artifactId>protostuff-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.protostuff</groupId>
            <artifactId>protostuff-runtime</artifactId>
        </dependency>

        <!--Log-->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
        </dependency>

        <!--Spring-->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
        </dependency>

        <!--haotian-lombok-->
        <dependency>
            <groupId>com.ohaotian</groupId>
            <artifactId>lombok</artifactId>
        </dependency>

        <!--Commons-->
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>

        <dependency>
            <groupId>com.alibaba.edas</groupId>
            <artifactId>edas-sdk</artifactId>
            <version>1.8.1</version>
        </dependency>
    </dependencies>

    <!--Dubbo、SpringCloud构建方式-->
    <!--<build>
        &lt;!&ndash;        <resources>&ndash;&gt;
        &lt;!&ndash;            <resource>&ndash;&gt;
        &lt;!&ndash;                <directory>src/main/resources</directory>&ndash;&gt;
        &lt;!&ndash;                <filtering>true</filtering>&ndash;&gt;
        &lt;!&ndash;                <excludes>&ndash;&gt;
        &lt;!&ndash;                    <exclude>application.properties</exclude>&ndash;&gt;
        &lt;!&ndash;                    <exclude>log4j2.xml</exclude>&ndash;&gt;
        &lt;!&ndash;                </excludes>&ndash;&gt;
        &lt;!&ndash;            </resource>&ndash;&gt;
        &lt;!&ndash;        </resources>&ndash;&gt;
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.tydic.ext.contract.ServiceApplication</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            &lt;!&ndash;            <plugin>&ndash;&gt;
            &lt;!&ndash;                <groupId>com.spotify</groupId>&ndash;&gt;
            &lt;!&ndash;                <artifactId>docker-maven-plugin</artifactId>&ndash;&gt;
            &lt;!&ndash;                <version>1.2.0</version>&ndash;&gt;
            &lt;!&ndash;                <configuration>&ndash;&gt;
            &lt;!&ndash;                    <imageName>${project.artifactId}</imageName>&ndash;&gt;
            &lt;!&ndash;                    <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>&ndash;&gt;
            &lt;!&ndash;                    <noCache>true</noCache>&ndash;&gt;
            &lt;!&ndash;                    <resources>&ndash;&gt;
            &lt;!&ndash;                        <resource>&ndash;&gt;
            &lt;!&ndash;                            <targetPath>/</targetPath>&ndash;&gt;
            &lt;!&ndash;                            <directory>${project.build.directory}</directory>&ndash;&gt;
            &lt;!&ndash;                            <include>${project.build.finalName}.jar</include>&ndash;&gt;
            &lt;!&ndash;                        </resource>&ndash;&gt;
            &lt;!&ndash;                    </resources>&ndash;&gt;
            &lt;!&ndash;                </configuration>&ndash;&gt;
            &lt;!&ndash;            </plugin>&ndash;&gt;
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>3.1.0</version>
                <configuration>
                    <descriptors>
                        <descriptor>src/main/assembly/assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            &lt;!&ndash;配置中心Disconf使用时请打开&ndash;&gt;
            &lt;!&ndash;            <plugin>&ndash;&gt;
            &lt;!&ndash;                <groupId>org.codehaus.mojo</groupId>&ndash;&gt;
            &lt;!&ndash;                <artifactId>exec-maven-plugin</artifactId>&ndash;&gt;
            &lt;!&ndash;                <version>1.1.1</version>&ndash;&gt;
            &lt;!&ndash;                <executions>&ndash;&gt;
            &lt;!&ndash;                    <execution>&ndash;&gt;
            &lt;!&ndash;                        <phase>compile</phase>&ndash;&gt;
            &lt;!&ndash;                        <goals>&ndash;&gt;
            &lt;!&ndash;                            <goal>java</goal>&ndash;&gt;
            &lt;!&ndash;                        </goals>&ndash;&gt;
            &lt;!&ndash;                        <configuration>&ndash;&gt;
            &lt;!&ndash;                            <mainClass>com.ohaotian.plugin.config.Build</mainClass>&ndash;&gt;
            &lt;!&ndash;                            <arguments>&ndash;&gt;
            &lt;!&ndash;                                <argument>true</argument>&ndash;&gt;
            &lt;!&ndash;                            </arguments>&ndash;&gt;
            &lt;!&ndash;                        </configuration>&ndash;&gt;
            &lt;!&ndash;                    </execution>&ndash;&gt;
            &lt;!&ndash;                </executions>&ndash;&gt;
            &lt;!&ndash;            </plugin>&ndash;&gt;
        </plugins>
    </build>-->
    <!--Dubbo、SpringCloud构建方式-->

    <build>
        <plugins>
            <plugin>
                <groupId>com.taobao.pandora</groupId>
                <artifactId>pandora-boot-maven-plugin</artifactId>
                <version>2.1.9.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!--            <plugin>-->
            <!--                <groupId>org.codehaus.mojo</groupId>-->
            <!--                <artifactId>exec-maven-plugin</artifactId>-->
            <!--                <version>1.1.1</version>-->
            <!--                <executions>-->
            <!--                    <execution>-->
            <!--                        <phase>compile</phase>-->
            <!--                        <goals>-->
            <!--                            <goal>java</goal>-->
            <!--                        </goals>-->
            <!--                        <configuration>-->
            <!--                            <mainClass>com.ohaotian.plugin.config.Build</mainClass>-->
            <!--                            <arguments>-->
            <!--                                <argument>true</argument>-->
            <!--                            </arguments>-->
            <!--                        </configuration>-->
            <!--                    </execution>-->
            <!--                </executions>-->
            <!--            </plugin>-->
        </plugins>
    </build>
    <!--HSF构建方式-->
</project>