<?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>cn.com.yusys.yusp</groupId>
        <artifactId>yusp-parent</artifactId>
        <version>V4.3.1.20240630.RELEASE</version>
    </parent>

    <groupId>cn.com.yusys.yusp.common</groupId>
    <artifactId>udp-base</artifactId>
    <version>V4.3.1.20240630.RELEASE</version>
    <packaging>pom</packaging>
    <modules>
        <module>udp-base-common</module>
        <module>udp-base-swagger-ui</module>
        <module>udp-base-util</module>
    </modules>

    <scm>
        <connection>scm:git:http://192.168.36.21:8082/yusp/base/udp-base.git</connection>
        <url>http://192.168.36.21:8082/yusp/base/udp-base</url>
        <developerConnection>scm:git:http://192.168.36.21:8082/yusp/base/udp-base.git</developerConnection>
        <tag>HEAD</tag>
    </scm>

<!--    <distributionManagement>-->
<!--        <snapshotRepository>-->
<!--            <id>yusp-snapshots</id>-->
<!--            <url>http://192.168.36.21:9018/repository/yusp-snapshots/</url>-->
<!--        </snapshotRepository>-->
<!--        <repository>-->
<!--            <id>yusp-releases</id>-->
<!--            <url>http://192.168.36.21:9018/repository/yusp-releases/</url>-->
<!--        </repository>-->
<!--    </distributionManagement>-->

    <distributionManagement>
        <repository>
            <id>icsp-releases</id>
            <url>http://cloud.foxloader.cn:11358/nexus/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>icsp-snapshots</id>
            <url>http://cloud.foxloader.cn:11358/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <!-- 即将要打的tag名称 -->
                    <tagNameFormat>4.2.1.20231221.RELEASE</tagNameFormat>
                    <useReleaseProfile>false</useReleaseProfile>
                    <!-- 子模块是否一起设置版本号 -->
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <!-- 执行的全局命令  如果不在prepare阶段执行deploy命令  则在prepare完成后在执行perform命令-->
                    <!-- <preparationGoals>clean deploy</preparationGoals>   -->
                    <!-- 即将发布RELEASE版本的版本号 -->
                    <releaseVersion>V4.2.1.20231221.RELEASE</releaseVersion>
                    <!-- git commit 操作前缀 -->
                    <scmCommentPrefix>[V4.2.1.20231221.RELEASE publish use maven-release-plugin]</scmCommentPrefix>
                    <!-- 下一个SNAPSHOT版本的版本号 -->
                    <developmentVersion>V4.3.1.20240630.RELEASE</developmentVersion>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>**</include>
                    </includes>
                    <destFile>${project.build.directory}/jacoco.exec</destFile>
                    <dataFile>${project.build.directory}/jacoco.exec</dataFile>
                    <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
                </configuration>
                <executions>
                    <execution>
                        <id>pre-test</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>post-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
