<?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>

    <groupId>com.vctgo</groupId>
    <artifactId>vctgo</artifactId>
    <version>1.2.2</version>
    <packaging>pom</packaging>
    <name>vctgo</name>
    <url>https://www.vctgo.cn</url>
    <description>Vctgo微服务系统</description>

    <modules>
        <module>vctgo-auth</module>
        <module>vctgo-gateway</module>
        <module>vctgo-modules</module>
        <module>vctgo-api</module>
        <module>vctgo-common</module>
    </modules>


    <properties>
        <vctgo.version>1.2.2</vctgo.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
        <spring-boot.version>2.7.7</spring-boot.version>
        <spring-cloud.version>2021.0.5</spring-cloud.version>
        <spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
        <alibaba.nacos.version>2.1.1</alibaba.nacos.version>
        <spring-boot-admin.version>2.7.10</spring-boot-admin.version>
        <spring-boot.mybatis.plus>3.5.1</spring-boot.mybatis.plus>
        <swagger.fox.version>3.0.0</swagger.fox.version>
        <swagger.core.version>1.6.2</swagger.core.version>
        <tobato.version>1.27.2</tobato.version>
        <hutool.version>5.6.1</hutool.version>
        <kaptcha.version>2.3.3</kaptcha.version>
        <pagehelper.boot.version>1.4.3</pagehelper.boot.version>
        <alibaba.seata.version>1.5.1</alibaba.seata.version>
        <druid.version>1.2.16</druid.version>
        <dynamic-ds.version>3.5.2</dynamic-ds.version>
        <commons.io.version>2.11.0</commons.io.version>
        <velocity.version>2.3</velocity.version>
        <fastjson.version>2.0.25</fastjson.version>
        <jjwt.version>0.9.1</jjwt.version>
        <minio.version>8.2.2</minio.version>
        <poi.version>4.1.2</poi.version>
        <transmittable-thread-local.version>2.14.2</transmittable-thread-local.version>
        <lombok.version>1.18.22</lombok.version>
        <oshi.version>6.1.2</oshi.version>
        <ganymed-ssh2.version>build250</ganymed-ssh2.version>
        <jsch.version>0.1.55</jsch.version>
        <aliyun-java-sdk-core.version>4.6.0</aliyun-java-sdk-core.version>
        <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version>
        <bitwalker.version>1.21</bitwalker.version>
    </properties>

    <!-- 依赖声明 -->
    <dependencyManagement>
        <dependencies>

            <!-- SpringCloud 微服务 -->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- SpringCloud Alibaba 微服务 -->
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${spring-cloud-alibaba.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Alibaba Nacos 配置 -->
            <dependency>
                <groupId>com.alibaba.nacos</groupId>
                <artifactId>nacos-client</artifactId>
                <version>${alibaba.nacos.version}</version>
            </dependency>

            <!-- Alibaba Seata 配置 -->
            <dependency>
                <groupId>io.seata</groupId>
                <artifactId>seata-spring-boot-starter</artifactId>
                <version>${alibaba.seata.version}</version>
            </dependency>

            <!-- SpringBoot 依赖配置 -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring-boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-mail</artifactId>
                <version>${spring-boot.version}</version>
            </dependency>


            <!-- FastDFS 分布式文件系统 -->
            <dependency>
                <groupId>com.github.tobato</groupId>
                <artifactId>fastdfs-client</artifactId>
                <version>${tobato.version}</version>
            </dependency>

            <!-- Mybatis 依赖配置 -->
            <!--            <dependency>-->
            <!--                <groupId>org.mybatis.spring.boot</groupId>-->
            <!--                <artifactId>mybatis-spring-boot-starter</artifactId>-->
            <!--                <version>${spring-boot.mybatis}</version>-->
            <!--            </dependency>-->


            <!-- Swagger 依赖配置 -->
            <dependency>
                <groupId>io.swagger</groupId>
                <artifactId>swagger-models</artifactId>
                <version>${swagger.core.version}</version>
            </dependency>
            <dependency>
                <groupId>io.swagger</groupId>
                <artifactId>swagger-annotations</artifactId>
                <version>${swagger.core.version}</version>
            </dependency>

            <!-- 验证码 -->
            <dependency>
                <groupId>pro.fessional</groupId>
                <artifactId>kaptcha</artifactId>
                <version>${kaptcha.version}</version>
            </dependency>

            <!-- io常用工具类 -->
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
            </dependency>

            <!-- excel工具 -->
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>${poi.version}</version>
            </dependency>


            <!-- 代码生成使用模板 -->
            <dependency>
                <groupId>org.apache.velocity</groupId>
                <artifactId>velocity-engine-core</artifactId>
                <version>${velocity.version}</version>
            </dependency>


            <!-- JSON 解析器和生成器 -->
            <dependency>
                <groupId>com.alibaba.fastjson2</groupId>
                <artifactId>fastjson2</artifactId>
                <version>${fastjson.version}</version>
            </dependency>

            <!-- JWT -->
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt</artifactId>
                <version>${jjwt.version}</version>
            </dependency>

            <!-- 线程传递值 -->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>transmittable-thread-local</artifactId>
                <version>${transmittable-thread-local.version}</version>
            </dependency>
            <!-- 阿里云短信-->
            <dependency>
                <groupId>com.aliyun</groupId>
                <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
                <version>${aliyun-java-sdk-dysmsapi.version}</version>
            </dependency>
            <dependency>
                <groupId>com.aliyun</groupId>
                <artifactId>aliyun-java-sdk-core</artifactId>
                <version>${aliyun-java-sdk-core.version}</version>
            </dependency>
            <!-- 核心模块 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-core</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 接口模块 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-swagger</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 安全模块 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-security</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 权限范围 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-datascope</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 多数据源 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-datasource</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 分布式事务 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-seata</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 日志记录 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-log</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 缓存服务 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-redis</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- websocket服务 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-websocket</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 系统接口 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-api-system</artifactId>
                <version>${vctgo.version}</version>
            </dependency>
<!--            &lt;!&ndash; 玩具接口 &ndash;&gt;-->
<!--            <dependency>-->
<!--                <groupId>com.vctgo</groupId>-->
<!--                <artifactId>vctgo-api-toy</artifactId>-->
<!--                <version>${vctgo.version}</version>-->
<!--            </dependency>-->

            <!-- 租户功能 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-mybatisplus</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 通知功能 -->
            <dependency>
                <groupId>com.vctgo</groupId>
                <artifactId>vctgo-common-message</artifactId>
                <version>${vctgo.version}</version>
            </dependency>

            <!-- 获取系统信息 -->
            <dependency>
                <groupId>com.github.oshi</groupId>
                <artifactId>oshi-core</artifactId>
                <version>${oshi.version}</version>
            </dependency>

            <!-- linux链接，远程操作服务器-->
            <dependency>
                <groupId>com.jcraft</groupId>
                <artifactId>jsch</artifactId>
                <version>${jsch.version}</version>
            </dependency>

            <!-- 解析客户端操作系统、浏览器等 -->
            <dependency>
                <groupId>eu.bitwalker</groupId>
                <artifactId>UserAgentUtils</artifactId>
                <version>${bitwalker.version}</version>
            </dependency>

            <!-- 调用第三方接口使用-->
            <dependency>
                <!-- jsoup HTML parser library @ http://jsoup.org/ -->
                <groupId>org.jsoup</groupId>
                <artifactId>jsoup</artifactId>
                <version>1.10.2</version>
            </dependency>
        </dependencies>
    </dependencyManagement>


    <dependencies>
        <!-- bootstrap 启动器 -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bootstrap</artifactId>
        </dependency>
        <!-- spring boot 配置所需依赖 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>
        <!--lombok-->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>${lombok.version}</version>
        </dependency>

        <!-- mybatis-plus 增强CRUD -->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
            <version>${spring-boot.mybatis.plus}</version>
        </dependency>
        <!--        &lt;!&ndash; pagehelper 分页插件 &ndash;&gt;-->
        <!--        <dependency>-->
        <!--            <groupId>com.github.pagehelper</groupId>-->
        <!--            <artifactId>pagehelper-spring-boot-starter</artifactId>-->
        <!--            <version>${pagehelper.boot.version}</version>-->
        <!--        </dependency>-->
        <!-- hutool -->
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>${hutool.version}</version>
        </dependency>
        <dependency>
            <!-- jsoup HTML parser library @ http://jsoup.org/ -->
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.10.2</version>
        </dependency>

    </dependencies>

    <build>
        <finalName>${project.name}</finalName>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <version>2.3.3.RELEASE</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>repackage</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>dev</id>
            <properties>
                <!-- 开发环境标识，需要与配置文件的名称相对应 -->
                <profiles.active>devo</profiles.active>
                <nacos.namespace>jerz_devo_new_namespace</nacos.namespace>
                <nacos.server-addr>123.57.87.118:8848</nacos.server-addr>
                <sentinel_host_port>123.57.87.118:8718</sentinel_host_port>
                <nacos.group>jerz_devo_new_group</nacos.group>
            </properties>
            <activation>
                <!-- 默认环境 -->
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>test</id>
            <properties>
                <!-- 测试环境标识，需要与配置文件的名称相对应 -->
                <profiles.active>test</profiles.active>
                <nacos.namespace>jerz_test_new_namespace</nacos.namespace>
                <nacos.server-addr>8.140.25.221:8848</nacos.server-addr>
                <sentinel_host_port>8.140.25.221:8718</sentinel_host_port>
                <nacos.group>jerz_test_new_group</nacos.group>
            </properties>
        </profile>
        <profile>
            <id>pre</id>
            <properties>
                <!-- 预发布环境标识，需要与配置文件的名称相对应 -->
                <profiles.active>pre</profiles.active>
                <nacos.namespace>jerz_pre_new_namespace</nacos.namespace>
                <nacos.group>jerz_pre_new_group</nacos.group>
                <nacos.server-addr>8.140.25.221:8848</nacos.server-addr>
                <sentinel_host_port>8.140.25.221:8718</sentinel_host_port>
            </properties>

        </profile>
        <profile>
            <id>prod</id>
            <properties>
                <!-- 生产环境标识，需要与配置文件的名称相对应 -->
                <profiles.active>prod</profiles.active>
                <nacos.namespace>jerz_prod_new_namespace</nacos.namespace>
                <nacos.server-addr>8.140.25.221:8848</nacos.server-addr>
                <sentinel_host_port>8.140.25.221:8718</sentinel_host_port>
                <nacos.group>jerz_prod_new_group</nacos.group>
            </properties>

        </profile>

    </profiles>

</project>
