<?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">
  <parent>
    <groupId>net.northking.cctp</groupId>
    <artifactId>cctp-parent</artifactId>
    <version>1.0.1-RELEASE</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <artifactId>cctp-platform</artifactId>
  <packaging>jar</packaging>
  <properties>
    <!-- The main class to start by executing java -jar -->
    <start-class>net.northking.cctp.platform.PlatformApplication</start-class>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
      </plugin>

      <!--  maven plugin: code generator    -->
      <plugin>
        <groupId>net.northking.cctp</groupId>
        <artifactId>cctp-maven-plugin</artifactId>
        <version>0.0.141-RELEASE</version>
        <configuration>
          <jdbcDriver>com.mysql.cj.jdbc.Driver</jdbcDriver>
          <jdbcUrl>jdbc:mysql://192.168.77.26:3306/cctp_platform?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false</jdbcUrl>
          <jdbcUsername>northking</jdbcUsername>
          <jdbcPassword>northking@002987</jdbcPassword>
          <database>cctp_platform</database>
          <schema>cctp_platform</schema>
          <tableNames>clt_dict_catalog</tableNames>
          <basePackage>net.northking.cctp.platform</basePackage>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>${spring-boot.version}</version>
        <configuration>
          <mainClass>${start-class}</mainClass>
          <outputDirectory>${dist-dir}/</outputDirectory>
          <finalName>${project.build.finalName}.ms</finalName>
          <layout>ZIP</layout>
          <includes>
            <include>
              <groupId>net.northking.cctp</groupId>
              <artifactId>cctp-commons</artifactId>
            </include>
            <include>
              <groupId>net.northking.cctp</groupId>
              <artifactId>cctp-test-element-core</artifactId>
            </include>
          </includes>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>repackage</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>net.northking.cctp</groupId>
      <artifactId>cctp-commons</artifactId>
      <version>${cctp-commons.version}</version>
    </dependency>

    <!-- 服务注册管理集成 Nacos Discovery -->
    <dependency>
      <groupId>com.alibaba.cloud</groupId>
      <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    </dependency>
    <!-- 配置管理服务集成 Nacos Config -->
    <dependency>
      <groupId>com.alibaba.cloud</groupId>
      <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>

    <dependency>
      <groupId>com.github.pagehelper</groupId>
      <artifactId>pagehelper-spring-boot-starter</artifactId>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-joda</artifactId>
    </dependency>
    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>easyexcel</artifactId>
      <version>3.0.5</version>
    </dependency>

    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>fastjson</artifactId>
    </dependency>

    <dependency>
      <groupId>net.northking.cctp</groupId>
      <artifactId>cctp-test-element-core</artifactId>
      <version>1.0.2-SNAPSHOT</version>
    </dependency>

    <dependency>
      <groupId>io.appium</groupId>
      <artifactId>java-client</artifactId>
      <version>7.6.0</version>
      <exclusions>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>com.hzbank.testteam.autotest.dependencies</groupId>
      <artifactId>monster-dependency</artifactId>
      <version>${monster-dependency.version}</version>
    </dependency>
  </dependencies>


</project>