<?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>
        <artifactId>saas-backend-server</artifactId>
        <groupId>com.bcxin</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>saas-backend-task</artifactId>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.bcxin</groupId>
            <artifactId>saas-backend-domain</artifactId>
        </dependency>
        <dependency>
            <groupId>com.bcxin</groupId>
            <artifactId>saas-runtime-domain</artifactId>
        </dependency>
        <dependency>
            <groupId>com.bcxin</groupId>
            <artifactId>saas-runtime-domain-repository</artifactId>
        </dependency>
        <dependency>
            <groupId>com.bcxin</groupId>
            <artifactId>saas-event</artifactId>
        </dependency>
        <dependency>
            <groupId>com.bcxin</groupId>
            <artifactId>saas-event-repository</artifactId>
        </dependency>
    </dependencies>
    <profiles>
        <profile>
            <id>dev</id>
            <properties>
                <spring.profiles.active>dev</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>securityindev</id>
            <properties>
                <spring.profiles.active>securityindev</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>beijingout</id>
            <properties>
                <spring.profiles.active>beijingout</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>shanxiout</id>
            <properties>
                <spring.profiles.active>shanxiout</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>securityindev-mysql</id>
            <properties>
                <spring.profiles.active>securityindev-mysql</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>securityoutdev</id>
            <properties>
                <spring.profiles.active>securityoutdev</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>securityintest-mysql</id>
            <properties>
                <spring.profiles.active>securityintest-mysql</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>test-welding-in</id>
            <properties>
                <spring.profiles.active>test-welding-in</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>prod</id>
            <properties>
                <spring.profiles.active>prod</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>com-prod</id>
            <properties>
                <spring.profiles.active>com-prod</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>dev-mpp</id>
            <properties>
                <spring.profiles.active>dev-mpp</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>hunanin</id>
            <properties>
                <spring.profiles.active>hunanin</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>hunanout</id>
            <properties>
                <spring.profiles.active>hunanout</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>nanningin</id>
            <properties>
                <spring.profiles.active>nanningin</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>gx_quting</id>
            <properties>
                <spring.profiles.active>gx_quting</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>mock-beijing-securiy-in</id>
            <properties>
                <spring.profiles.active>mock-beijing-securiy-in</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>test-ws</id>
            <properties>
                <spring.profiles.active>test-ws</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>local</id>
            <properties>
                <spring.profiles.active>local</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>test</id>
            <properties>
                <spring.profiles.active>test</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>preinprod</id>
            <properties>
                <spring.profiles.active>preinprod</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>preoutprod</id>
            <properties>
                <spring.profiles.active>preoutprod</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>preprod</id>
            <properties>
                <spring.profiles.active>preprod</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>ningxiain</id>
            <properties>
                <spring.profiles.active>ningxiain</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>ningxiaout</id>
            <properties>
                <spring.profiles.active>ningxiaout</spring.profiles.active>
            </properties>
        </profile>
        <profile>
            <id>shanxi-in-prod</id>
            <properties>
                <spring.profiles.active>shanxi-in-prod</spring.profiles.active>
            </properties>
        </profile>
    </profiles>
    <build>
        <finalName>${project.artifactId}-1.0</finalName>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <exclude>application-*.yml</exclude>
                </excludes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>application.yml</include>
                    <include>application-${spring.profiles.active}.yml</include>
                </includes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.5.1</version>
            </plugin>
        </plugins>
    </build>
</project>