<?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>yusp-common</artifactId>
    <version>V4.3.1.20240630.RELEASE</version>
    <packaging>pom</packaging>
    <name>yusp-common</name>

    <modules>
        <module>yusp-commons-dependencies</module>
        <module>commons</module>
        <module>yusp-commons-starters</module>
        <module>yusp-commons-autoconfigure</module>
    </modules>
    <scm>
        <connection>scm:git:http://192.168.36.21:8082/yusp/base/yusp-common.git</connection>
        <url>http://192.168.36.21:8082/yusp/base/yusp-common</url>
        <developerConnection>scm:git:http://192.168.36.21:8082/yusp/base/yusp-common.git</developerConnection>
        <tag>HEAD</tag>
    </scm>

    <properties>
        <yusp-common.version>V4.3.1.20240630.RELEASE</yusp-common.version>
        <yusp-license.version>2.1.4.RELEASE</yusp-license.version>
        <udp-base.version>V4.3.1.20240630.RELEASE</udp-base.version>
        <argLine>-Dfile.encoding=UTF-8</argLine>
    </properties>

<!--    <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-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>
</project>
