<?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>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>3.0.0</version>
    </parent>
    <groupId>co.panghu.boot</groupId>
    <artifactId>panghu-boot-starter-parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0.0</version>
    <modules>
        <module>panghu-boot-common</module>
        <module>panghu-boot-starter-redis</module>
        <module>panghu-boot-starter-web</module>
        <module>panghu-boot-starter-security</module>
        <module>panghu-boot-starter-aliyun-oss</module>
        <module>panghu-boot-starter-aliyun-sms</module>
        <module>panghu-boot-starter-alipay</module>
        <module>panghu-boot-starter-thymeleaf</module>
        <module>panghu-boot-starter-mybatis-plus</module>
        <module>panghu-boot-starter-log4j2</module>
    </modules>
    <licenses>
        <license>
            <name>MIT License</name>
            <url>https://www.opensource.org/licenses/mit-license.php</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>Max</name>
            <email>wangbiao_max@163.com</email>
            <url>https://gitee.com/panghu-project/panghu-boot-starter-parent</url>
            <roles>
                <role>Project Manager</role>
                <role>Architect</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
    </developers>


    <scm>
        <connection>https://gitee.com/panghu-project/panghu-boot-starter-parent.git</connection>
        <developerConnection>https://gitee.com/panghu-project/panghu-boot-starter-parent.git</developerConnection>
        <url>https://gitee.com/panghu-project/panghu-boot-starter-parent</url>
    </scm>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <druid.boot.version>1.2.16</druid.boot.version>
        <rocketmq.boot.version>2.2.3</rocketmq.boot.version>
        <mybatis.plus.boot.version>3.5.3.1</mybatis.plus.boot.version>
        <knife4j.boot.version>3.0.3</knife4j.boot.version>
        <fastjson2.version>2.0.25</fastjson2.version>
        <jjwt.version>0.11.5</jjwt.version>
        <hutool.all.version>5.8.15</hutool.all.version>
        <snakeyaml.version>2.0</snakeyaml.version>
        <disruptor.version>3.4.4</disruptor.version>
        <netty.codec.version>4.1.90.Final</netty.codec.version>
        <aliyun.oss.sdk.version>3.16.1</aliyun.oss.sdk.version>
        <jaxb.api.version>2.3.1</jaxb.api.version>
        <activation.version>1.1.1</activation.version>
        <jaxb.runtime.version>4.0.2</jaxb.runtime.version>
        <alipay.sdk.version>4.35.83.ALL</alipay.sdk.version>
        <dom4j.version>2.1.4</dom4j.version>
        <bcprov.jdk15on.version>1.70</bcprov.jdk15on.version>
        <aliyun.sms.version>2.0.23</aliyun.sms.version>
    </properties>
    <dependencyManagement>

        <dependencies>
            <dependency>
                <groupId>com.aliyun</groupId>
                <artifactId>alibabacloud-dysmsapi20170525</artifactId>
                <version>${aliyun.sms.version}</version>
            </dependency>

            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-jdk15on</artifactId>
                <version>${bcprov.jdk15on.version}</version>
            </dependency>
            <dependency>
                <groupId>org.dom4j</groupId>
                <artifactId>dom4j</artifactId>
                <version>${dom4j.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alipay.sdk</groupId>
                <artifactId>alipay-sdk-java</artifactId>
                <version>${alipay.sdk.version}</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jaxb</groupId>
                <artifactId>jaxb-runtime</artifactId>
                <version>${jaxb.runtime.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.activation</groupId>
                <artifactId>activation</artifactId>
                <version>${activation.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${jaxb.api.version}</version>
            </dependency>

            <dependency>
                <groupId>com.aliyun.oss</groupId>
                <artifactId>aliyun-sdk-oss</artifactId>
                <version>${aliyun.oss.sdk.version}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-codec</artifactId>
                <version>${netty.codec.version}</version>
            </dependency>
            <dependency>
                <groupId>com.lmax</groupId>
                <artifactId>disruptor</artifactId>
                <version>${disruptor.version}</version>
            </dependency>
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
                <version>${snakeyaml.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid-spring-boot-starter</artifactId>
                <version>${druid.boot.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rocketmq</groupId>
                <artifactId>rocketmq-spring-boot-starter</artifactId>
                <version>${rocketmq.boot.version}</version>
            </dependency>
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${mybatis.plus.boot.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.xiaoymin</groupId>
                <artifactId>knife4j-spring-boot-starter</artifactId>
                <version>${knife4j.boot.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba.fastjson2</groupId>
                <artifactId>fastjson2</artifactId>
                <version>${fastjson2.version}</version>
            </dependency>
            <dependency>
                <groupId>com.alibaba.fastjson2</groupId>
                <artifactId>fastjson2-extension</artifactId>
                <version>${fastjson2.version}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-gson</artifactId>
                <version>${jjwt.version}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-api</artifactId>
                <version>${jjwt.version}</version>
            </dependency>
            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt-impl</artifactId>
                <version>${jjwt.version}</version>
            </dependency>
            <dependency>
                <groupId>cn.hutool</groupId>
                <artifactId>hutool-all</artifactId>
                <version>${hutool.all.version}</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-common</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-alipay</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-aliyun-oss</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-aliyun-sms</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-mybatis-plus</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-redis</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-security</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-thymeleaf</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-web</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>co.panghu.boot</groupId>
                <artifactId>panghu-boot-starter-log4j2</artifactId>
                <version>1.0.0</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <profiles>
        <profile>
            <id>panghu</id>
            <distributionManagement>
                <repository>
                    <id>panghu-releases</id>
                    <url>http://192.168.50.10:8003/repository/panghu-releases/</url>
                </repository>
                <snapshotRepository>
                    <id>panghu-snapshots</id>
                    <uniqueVersion>true</uniqueVersion>
                    <url>http://192.168.50.10:8003/repository/panghu-snapshots/</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
        <profile>
            <id>ossrh</id>
            <distributionManagement>
                <repository>
                    <id>ossrh</id>
                    <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
    </profiles>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <useReleaseProfile>false</useReleaseProfile>
                    <releaseProfiles>release</releaseProfiles>
                    <goals>deploy</goals>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>17</source>
                    <target>17</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>1.5</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-versions</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>2.1.0</version>
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <version>17</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>enforce-banned-dependencies</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <bannedDependencies>
                                    <excludes>
                                        <exclude>org.springframework.boot:spring-boot-starter-logging</exclude>
                                        <exclude>commons-logging:commons-logging</exclude>
                                    </excludes>
                                </bannedDependencies>
                            </rules>
                            <fail>true</fail>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>