<?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>work.seals</groupId>
    <artifactId>seal-quartz</artifactId>
    <version>3.5.7</version>
    <name>seal-quartz</name>
    <url>http://www.silianpan.cn</url>
    <description>quartz定时任务</description>

    <properties>
        <seal-common.version>3.6.2</seal-common.version>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
    </properties>

    <!-- deploy start -->
    <!-- licenses -->
    <licenses>
        <!-- MIT许可证 -->
        <license>
            <name>MIT License</name>
            <url>http://www.opensource.org/licenses/mit-license.php</url>
        </license>
        <!-- Apache许可证 -->
        <!-- <license>
                <name>The Apache Software License, Version 2.0</name>
                <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            </license> -->
    </licenses>

    <!-- developers -->
    <developers>
        <developer>
            <name>silianpan</name>
            <email>liu.pan@silianpan.cn</email>
            <url>http://www.silianpan.cn</url>
        </developer>
    </developers>

    <!-- scm -->
    <scm>
        <tag>master</tag>
        <connection>https://github.com/silianpan/uniapp-admin</connection>
        <developerConnection>https://github.com/silianpan</developerConnection>
        <url>https://github.com/silianpan/uniapp-admin</url>
    </scm>
    <!-- deploy end -->

    <!-- 依赖声明 -->
    <dependencyManagement>
        <dependencies>
            <!-- SpringBoot的依赖配置-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.2.13.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>

        <!-- 定时任务 -->
        <dependency>
            <groupId>org.quartz-scheduler</groupId>
            <artifactId>quartz</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>com.mchange</groupId>
                    <artifactId>c3p0</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- 通用工具-->
        <dependency>
            <groupId>work.seals</groupId>
            <artifactId>seal-common</artifactId>
            <version>${seal-common.version}</version>
        </dependency>

    </dependencies>

    <!-- deploy start -->
    <!-- profiles -->
    <profiles>
        <profile>
            <id>release</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <!--            <properties>-->
            <!--                <gpg.executable>gpg2</gpg.executable>-->
            <!--                <gpg.passphrase>the_pass_phrase</gpg.passphrase>-->
            <!--            </properties>-->
            <build>
                <plugins>
                    <!-- 要生成Javadoc和Source jar文件，您必须配置javadoc和源Maven插件 -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.2.1</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>3.2.0</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!--  必须配置GPG插件用于使用以下配置对组件进行签名 -->
                    <!-- GPG -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- Nexus Staging Maven插件，用于自动部署和发布 -->
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <version>1.6.8</version>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <distributionManagement>
                <!-- 中央仓库start -->
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
                <repository>
                    <id>ossrh</id>
                    <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
                <!-- 中央仓库end -->

                <!-- nexus私服start -->
<!--                <repository>-->
<!--                    <id>nexus-releases</id>-->
<!--                    <name>maven-releases</name>-->
<!--                    <url>http://39.98.39.58:9002/repository/maven-releases/</url>-->
<!--                </repository>-->
<!--                <snapshotRepository>-->
<!--                    <id>nexus-snapshots</id>-->
<!--                    <name>maven-snapshots</name>-->
<!--                    <url>http://39.98.39.58:9002/repository/maven-snapshots/</url>-->
<!--                </snapshotRepository>-->
                <!-- nexus私服end -->
            </distributionManagement>
        </profile>
    </profiles>
    <!-- deploy end -->

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>