<?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>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.hcframe</groupId>
    <artifactId>parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0-SNAPSHOT</version>
    <modules>
        <module>hcframe-base</module>
        <module>hcframe-user</module>
        <module>storage</module>
        <module>hcframe-activiti</module>
        <module>hcframe-es</module>
        <module>hcframe-config</module>
        <module>hcframe-gateway</module>
        <module>hcframe-starter</module>
        <module>hcframe-test</module>
        <module>hcframe-spider</module>
    </modules>
    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <spring-alibaba.version>2.2.5.RELEASE</spring-alibaba.version>
        <spring-cloud.version>Hoxton.SR7</spring-cloud.version>
        <spring-boot.version>2.3.2.RELEASE</spring-boot.version>
        <java.cas.client.version>3.5.0</java.cas.client.version>
    </properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.alibaba.cloud</groupId>
                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
                <version>${spring-alibaba.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <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.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.18.8</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <!-- guava工具类 -->
        <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>30.1-jre</version>
        </dependency>

        <!-- hutool工具类-->
        <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.5.9</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <nonFilteredFileExtensions>
                        <nonFilteredFileExtension>woff</nonFilteredFileExtension>
                        <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
                        <nonFilteredFileExtension>eot</nonFilteredFileExtension>
                        <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
                        <nonFilteredFileExtension>svg</nonFilteredFileExtension>
                    </nonFilteredFileExtensions>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                    <include>**/*.json</include>
                    <include>**/*.ftl</include>
                </includes>
            </resource>
        </resources>
    </build>
    <profiles>
        <profile>
            <id>dev</id>
            <activation>
                <!--默认激活配置-->
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <!--当前环境-->
                <profile.name>dev</profile.name>
                <!--Nacos配置中心地址-->
                <config.server-addr>192.168.100.98:8848</config.server-addr>
                <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID，不能使用名称,默认为空-->
                <config.namespace>2e9f0148-751e-4da2-83ec-cb00ffe0d83a</config.namespace>
                <!--Nacos配置分组名称-->
                <config.group>DEFAULT_GROUP</config.group>
                <config.username>dev</config.username>
                <config.password>123456</config.password>
                <!-- Nacos服务发现地址-->
                <discovery.server-addr>192.168.100.98:8848</discovery.server-addr>
                <!-- redis 配置-->
                <redis.database>0</redis.database>
                <redis.host>192.168.100.98</redis.host>
                <redis.port>6379</redis.port>
                <redis.password/>
                <!-- cas配置 -->
                <cas.client-context-path>/user/cas/valid</cas.client-context-path>
                <cas.cas-service-url>http://192.168.100.98:8080</cas.cas-service-url>
                <cas.cas-context-path>/cas</cas.cas-context-path>
                <cas.white-url>^.*(/logout/?)$</cas.white-url>
                <cas.service-url>http://localhost:8084</cas.service-url>
                <cas.cookie-holder-pattern>com.hcframe.gateway.config.MyDataStorage</cas.cookie-holder-pattern>
                <cas.login-url>/login</cas.login-url>
                <cas.logout-url>/logout</cas.logout-url>
            </properties>
        </profile>
        <profile>
            <id>stage</id>
            <properties>
                <profile.name>stage</profile.name>
                <!--Nacos配置中心地址-->
                <config.server-addr>192.168.100.98:8848</config.server-addr>
                <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID，不能使用名称,默认为空-->
                <config.namespace>2e9f0148-751e-4da2-83ec-cb00ffe0d83a</config.namespace>
                <!--Nacos配置分组名称-->
                <config.group>DEFAULT_GROUP</config.group>
                <config.username>dev</config.username>
                <config.password>123456</config.password>
                <!-- Nacos服务发现地址-->
                <discovery.server-addr>192.168.100.98:8848</discovery.server-addr>
                <!-- redis 配置-->
                <redis.database>0</redis.database>
                <redis.host>192.168.100.98</redis.host>
                <redis.port>6379</redis.port>
                <redis.password/>
                <!-- cas配置 -->
                <cas.client-context-path>/user/cas/valid</cas.client-context-path>
                <cas.cas-service-url>http://192.168.100.98:8080</cas.cas-service-url>
                <cas.cas-context-path>/cas</cas.cas-context-path>
                <cas.white-url>^.*(/logout?)$</cas.white-url>
                <cas.service-url>http://192.168.100.98:8084</cas.service-url>
                <cas.cookie-holder-pattern>com.hcframe.gateway.config.MyDataStorage</cas.cookie-holder-pattern>
                <cas.login-url>/login</cas.login-url>
                <cas.logout-url>/logout</cas.logout-url>
            </properties>
        </profile>
        <profile>
            <id>prod</id>
            <properties>
                <!--当前环境-->
                <profile.name>prod</profile.name>
                <!--Nacos配置中心地址-->
                <config.server-addr>10.11.64.16:8848</config.server-addr>
                <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID，不能使用名称,默认为空-->
                <config.namespace>2e9f0148-751e-4da2-83ec-cb00ffe0d83a</config.namespace>
                <!--Nacos配置分组名称-->
                <config.group>DEFAULT_GROUP</config.group>
                <config.username>dev</config.username>
                <config.password>AnmzxclAJSi</config.password>
                <!-- Nacos服务发现地址-->
                <discovery.server-addr>10.11.64.16:8848</discovery.server-addr>
                <!-- redis 配置-->
                <redis.database>0</redis.database>
                <redis.host>10.11.64.16</redis.host>
                <redis.port>6379</redis.port>
                <redis.password/>
                <!-- cas配置 -->
                <cas.client-context-path>/user/cas/valid</cas.client-context-path>
                <cas.cas-service-url>http://10.11.64.15:80</cas.cas-service-url>
                <cas.cas-context-path>/cas</cas.cas-context-path>
                <cas.white-url>^.*(/logout?)$</cas.white-url>
                <cas.service-url>http://10.11.64.16:8084</cas.service-url>
                <cas.cookie-holder-pattern>com.hcframe.gateway.config.MyDataStorage</cas.cookie-holder-pattern>
                <cas.login-url>/login</cas.login-url>
                <cas.logout-url>/logout</cas.logout-url>
            </properties>
        </profile>
    </profiles>
</project>
