<?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-message</artifactId>
    <version>2.0.1-TEST-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>foundation-message</name>
    <parent>
        <groupId>com.uniapis</groupId>
        <artifactId>foundation-parent</artifactId>
        <version>2.0.1-TEST-SNAPSHOT</version>
    </parent>
    <dependencies>
        <dependency>
            <groupId>com.uniapis</groupId>
            <artifactId>foundation-utils</artifactId>
            <version>${project.parent.version}</version>
        </dependency>
        <dependency>
            <groupId>com.uniapis</groupId>
            <artifactId>foundation-validate</artifactId>
            <version>1.0.15-TEST-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <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>
    </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>