<?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.uniapis</groupId>
    <artifactId>foundation-logger</artifactId>
    <packaging>jar</packaging>
    <name>foundation-logger</name>
    <parent>
        <groupId>com.uniapis</groupId>
        <artifactId>foundation-parent</artifactId>
        <version>2.0.0-TEST-SNAPSHOT</version>
    </parent>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j2</artifactId>
        </dependency>
        <!-- ↓↓ log4j 2 依赖 ↓↓ -->
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
<!--            <version>1.7.32</version>-->
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-jul</artifactId>
        </dependency>
        <!--<dependency>-->
        <!--<groupId>org.apache.logging.log4j</groupId>-->
        <!--<artifactId>log4j-web</artifactId>-->
        <!--<scope>runtime</scope>-->
        <!--</dependency>-->
        <dependency>
            <groupId>com.lmax</groupId>
            <artifactId>disruptor</artifactId>
        </dependency>
        <!--<dependency>-->
        <!--<groupId>org.apache.logging.log4j</groupId>-->
        <!--<artifactId>log4j-slf4j-impl</artifactId>-->
        <!--</dependency>-->
        <!-- ↑↑ log4j 2 依赖 ↑↑ -->
        <!-- ↓↓ 读取yaml配置依赖 ↓↓ -->
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
        </dependency>
        <!-- ↑↑ 读取yaml配置依赖 ↑↑ -->
        <dependency>
            <groupId>org.junit.platform</groupId>
            <artifactId>junit-platform-runner</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
            <optional>true</optional>
        </dependency>
    </dependencies>
    <build>
        <finalName>${project.artifactId}</finalName>
        <resources>
            <resource>
                <!-- 设定主资源目录 -->
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <excludes>
                    <!-- install时排除数据库配置文件 -->
                    <!--<exclude>**/jdbc.properties</exclude>-->
                    <exclude>log4j2_bak.xml</exclude>
                </excludes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.11.0</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <compilerArgs>
                        <arg>-parameters</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.3.0</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <!--↓↓ 忽略单元测试↓↓ -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0</version>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                    <skip>true</skip>
                </configuration>
            </plugin>
            <!--↑↑ 忽略单元测试↑↑ -->
            <!--<plugin>-->
            <!--<artifactId>maven-source-plugin</artifactId>-->
            <!--<version>3.3.0</version>-->
            <!--<configuration>-->
            <!--<attach>true</attach>-->
            <!--</configuration>-->
            <!--<executions>-->
            <!--<execution>-->
            <!--<phase>compile</phase>-->
            <!--<goals>-->
            <!--<goal>jar</goal>-->
            <!--</goals>-->
            <!--</execution>-->
            <!--</executions>-->
            <!--</plugin>-->
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>n</id>
            <distributionManagement>
                <repository>
                    <id>newtouch-nexus2</id>
                    <name>>newtouch-nexus2-repository</name>
                    <url>https://www.bjnfbk.com/nexus2/repository/framework-snapshots/</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>picc-pscp</id>
            <properties>
                <project.env>-TEST-SNAPSHOT</project.env>
                <war.packagingExcludes>*.md,**/RunWithLoader.*,**/LicenseGenerator.*</war.packagingExcludes>
                <war.warSourceExcludes></war.warSourceExcludes>
            </properties>
            <distributionManagement>
                <repository>
                    <id>picc-pscp-nexus</id>
                    <name>nexus-repository</name>
                    <url>http://10.137.195.185:8081/nexus/repository/maven-pscp/</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>picc-new</id>
            <properties>
                <project.env>-TEST-SNAPSHOT</project.env>
                <war.packagingExcludes>*.md,**/RunWithLoader.*,**/LicenseGenerator.*</war.packagingExcludes>
                <war.warSourceExcludes></war.warSourceExcludes>
            </properties>
            <distributionManagement>
                <repository>
                    <id>picc-new-nexus</id>
                    <name>nexus-repository</name>
                    <url>http://10.135.100.243:8081/nexus/repository/maven-snapshots/</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>picc-pass</id>
            <properties>
                <project.env>-TEST-SNAPSHOT</project.env>
                <war.packagingExcludes>*.md,**/RunWithLoader.*,**/LicenseGenerator.*</war.packagingExcludes>
                <war.warSourceExcludes></war.warSourceExcludes>
            </properties>
            <distributionManagement>
                <repository>
                    <id>d59839-maven-cppz</id>
                    <name>maven-dop</name>
                    <url>http://bkrepo.itservice.piccnet/maven/d59839/maven-cppz/</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>picc-185</id>
            <distributionManagement>
                <repository>
                    <id>picc-185</id>
                    <name>picc-185</name>
                    <url>http://10.137.195.185:8081/nexus/repository/maven-snapshots/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>
</project>