<?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.4.2</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <groupId>io.gitee.isbool</groupId>
    <artifactId>bp-boot</artifactId>
    <packaging>pom</packaging>
    <version>2.0.1</version>
    <modules>
        <module>bp-core</module>
        <module>bp-jdbc</module>
        <module>bp-spring</module>
        <module>bp-jdbc-spring-boot-starter</module>
        <module>bp-web-spring-boot-starter</module>
        <module>bp-transfer-data</module>
        <module>bp-openfeign</module>
        <module>bp-devbasic</module>
    </modules>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
        <maven-source-plugin.version>3.3.1</maven-source-plugin.version>
        <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
        <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
        <central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
    </properties>

    <name>bp-boot</name>
    <description>BP-Boot 是基于 Spring Boot 的多模块 Java 开发框架，提供 JDBC 工具、数据传输和 Web 支持。</description>
    <url>https://gitee.com/isbool/bp-boot</url>

    <licenses>
        <license>
            <name>Apache License 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>dongkz</id>
            <name>dongkz</name>
            <email>610924161@qq.com</email>
            <url>https://gitee.com/isbool</url>
        </developer>
    </developers>

    <scm>
        <url>https://gitee.com/isbool/bp-boot</url>
        <connection>scm:git:https://gitee.com/isbool/bp-boot.git</connection>
        <developerConnection>scm:git:https://gitee.com/isbool/bp-boot.git</developerConnection>
    </scm>

    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                    <include>**/*.txt</include>
                    <include>**/*.yml</include>
                    <include>**/*.properties</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.*</include>
                </includes>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${maven-source-plugin.version}</version>
                <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>
                <version>${maven-javadoc-plugin.version}</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <charset>UTF-8</charset>
                    <docencoding>UTF-8</docencoding>
                    <failOnError>false</failOnError>
                    <quiet>true</quiet>
                    <doclint>none</doclint>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>${maven-gpg-plugin.version}</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.sonatype.central</groupId>
                <artifactId>central-publishing-maven-plugin</artifactId>
                <version>${central-publishing-maven-plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <publishingServerId>central</publishingServerId>
                    <autoPublish>true</autoPublish>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <!--    <dependencies>-->

    <!--        <dependency>-->
    <!--            <groupId>org.springframework.boot</groupId>-->
    <!--            <artifactId>spring-boot-starter</artifactId>-->
    <!--            <version>2.3.2.RELEASE</version>-->
    <!--        </dependency>-->

    <!--        <dependency>-->
    <!--            <groupId>org.springframework.boot</groupId>-->
    <!--            <artifactId>spring-boot-starter-web</artifactId>-->
    <!--        </dependency>-->

    <!--        <dependency>-->
    <!--            <groupId>org.xerial</groupId>-->
    <!--            <artifactId>sqlite-jdbc</artifactId>-->
    <!--            <version>3.21.0.1</version>-->
    <!--        </dependency>-->

    <!--    </dependencies>-->

    <dependencies>
        <!-- 测试 add on 2022/12/16 -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <!--            <version>2.0.16</version>-->
            <version>1.7.31</version>
        </dependency>

        <!-- 在bp-jdbc中有冲突，不能引用 -->
        <!--        <dependency>-->
        <!--            <groupId>org.slf4j</groupId>-->
        <!--            <artifactId>slf4j-log4j12</artifactId>-->
        <!--            <version>1.7.7</version>-->
        <!--        </dependency>-->

    </dependencies>

    <dependencyManagement>
        <dependencies>
            <!-- 基础框架不要引用到spring框架，便于非spring环境调试 -->
            <!--            <dependency>-->
            <!--                <groupId>io.springfox</groupId>-->
            <!--                <artifactId>springfox-boot-starter</artifactId>-->
            <!--                <version>3.0.0</version>-->
            <!--            </dependency>-->
            <!--            <dependency>-->
            <!--                <groupId>io.swagger</groupId>-->
            <!--                <artifactId>swagger-annotations</artifactId>-->
            <!--                <version>1.5.20</version>-->
            <!--            </dependency>-->
            <dependency>
                <groupId>io.swagger.core.v3</groupId>
                <artifactId>swagger-annotations</artifactId>
                <version>2.2.25</version>
            </dependency>
            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-core</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-spring</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-jdbc</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-web-spring-boot-starter</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-jdbc-spring-boot-starter</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-transfer-data</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-openfeign</artifactId>
                <version>2.0.1</version>
            </dependency>

            <dependency>
                <groupId>io.gitee.isbool</groupId>
                <artifactId>bp-devbasic</artifactId>
                <version>2.0.1</version>
            </dependency>

            <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
                <version>1.2.75</version>
            </dependency>

            <!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>druid</artifactId>
                <version>1.2.26</version>
            </dependency>

            <!-- https://mvnrepository.com/artifact/dom4j/dom4j -->
            <dependency>
                <groupId>dom4j</groupId>
                <artifactId>dom4j</artifactId>
                <version>1.6.1</version>
            </dependency>

            <!-- https://mvnrepository.com/artifact/jaxen/jaxen -->
            <!--            <dependency>-->
            <!--                <groupId>jaxen</groupId>-->
            <!--                <artifactId>jaxen</artifactId>-->
            <!--                <version>1.2.0</version>-->
            <!--            </dependency>-->

            <!--            <dependency>-->
            <!--                <groupId>javax.activation</groupId>-->
            <!--                <artifactId>activation</artifactId>-->
            <!--                <version>1.1.1</version>-->
            <!--            </dependency>-->

            <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
            <!--            <dependency>-->
            <!--                <groupId>org.apache.velocity</groupId>-->
            <!--                <artifactId>velocity</artifactId>-->
            <!--                <version>12</version>-->
            <!--            </dependency>-->
            <dependency>
                <groupId>org.apache.velocity</groupId>
                <!-- 注意：官方库名已变更 -->
                <artifactId>velocity-engine-core</artifactId>
                <version>2.4</version>
            </dependency>
            <!--            <dependency>-->
            <!--                <groupId>org.apache.velocity</groupId>-->
            <!--                <artifactId>velocity-engine-slf4j</artifactId>-->
            <!--                <version>2.4</version>-->
            <!--            </dependency>-->

            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>5.2.10.RELEASE</version>
            </dependency>

            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>5.2.10.RELEASE</version>
            </dependency>

            <!-- https://mvnrepository.com/artifact/org.apache.ant/ant -->
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.8.4</version>
            </dependency>

            <!-- ehcache依赖 add on 2022/11/29-->
            <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache</artifactId>
                <version>2.10.6</version>
            </dependency>

        </dependencies>
    </dependencyManagement>


</project>