<?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">
    <parent>
        <groupId>uni.java.UniJavaFramework</groupId>
        <artifactId>UniFramework</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <groupId>cn.sunyuqiang</groupId>
    <artifactId>yqutils</artifactId>
    <version>1.0.0-Release</version>

    <properties>
        <gpg.keyname>PersistForever</gpg.keyname>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <licenses>
        <license>
            <name>The MIT License</name>
            <url></url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>PersistForever</name>
            <email>1129921824@qq.com</email>
            <url>https://gitee.com/sunyuqiang</url>
        </developer>
    </developers>

    <!--不懂-->
    <scm>
        <connection>scm:git:https://gitee.com/sunyuqiang/yqutils.git</connection>
        <developerConnection>scm:git:https://gitee.com/sunyuqiang/yqutils.git</developerConnection>
        <url>https://gitee.com/sunyuqiang/yqutils</url>
    </scm>

    <distributionManagement>
        <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>
    </distributionManagement>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                    <include>**/*.factories</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
        <!--使用官网配置https://central.sonatype.org/publish/publish-maven/-->
        <!--<pluginManagement>-->
        <!--    <plugins>-->
        <!--        <plugin>-->
        <!--            <groupId>org.apache.maven.plugins</groupId>-->
        <!--            <artifactId>maven-compiler-plugin</artifactId>-->
        <!--            <version>3.8.0</version>-->
        <!--            <configuration>-->
        <!--                <source>1.8</source>-->
        <!--                <target>1.8</target>-->
        <!--                <encoding>UTF-8</encoding>-->
        <!--            </configuration>-->
        <!--        </plugin>-->
        <!--    </plugins>-->
        <!--</pluginManagement>-->
        <pluginManagement>
            <plugins>
                <!--用于部署和发布的Nexus Staging Maven插件-->
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.7</version>
                    <extensions>true</extensions>
                    <configuration>
                        <serverId>ossrh</serverId>
                        <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                        <autoReleaseAfterClose>true</autoReleaseAfterClose>
                    </configuration>
                </plugin>
                <!--
                如果您的版本是发行版（不以 -SNAPSHOT 结尾），并且此设置已就绪，
                则可以使用通常的操作运行 OSSRH 的部署和中央存储库的自动发布：
                mvn clean deploy
                将属性 autoReleaseAfterClose 设置为 false 后，
                您可以在 Nexus 存储库管理器中手动检查暂存存储库，并在以后使用
                mvn nexus-staging:release
                如果您发现出现问题，可以使用
                mvn nexus-staging:drop
                -->


                <!--生成Javadoc和Source.jar文件-->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.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>2.9.1</version>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <!--Maven GPG 插件用于使用以下配置对组件进行签名-->
                <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>
                            <!--
                            如果您有多个密钥，本地 gpg 将使用列出的第一个签名密钥 （），
                            如果您需要使用特定密钥，则可以在一个部分中添加 gpg 密钥的详细信息，
                            并使用本地通过签名密钥名发现密码。
                            gpg '-'-list-signatures<configuration>settings.xml
                            -->
                            <configuration>
                                <keyname>${gpg.keyname}</keyname>
                                <!--<passphraseServerId>${gpg.keyname}</passphraseServerId>-->
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <distributionManagement>
                <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>
            </distributionManagement>
            <build>
                <plugins>
                    <!-- Source -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>2.2.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- Javadoc -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.9.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- GPG -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <!--<build>-->
            <!--    <plugins>-->
            <!--        &lt;!&ndash;<plugin>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <groupId>org.apache.maven.plugins</groupId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <artifactId>maven-javadoc-plugin</artifactId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <version>2.10.4</version>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <configuration>&ndash;&gt;-->
            <!--        &lt;!&ndash;        <aggregate>true</aggregate>&ndash;&gt;-->
            <!--        &lt;!&ndash;    </configuration>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;        <execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <id>attach-javadocs</id>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;                <goal>jar</goal>&ndash;&gt;-->
            <!--        &lt;!&ndash;            </goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <configuration> &lt;!&ndash; add this to disable checking &ndash;&gt;&ndash;&gt;-->
            <!--        &lt;!&ndash;                <additionalparam>-Xdoclint:none</additionalparam>&ndash;&gt;-->
            <!--        &lt;!&ndash;            </configuration>&ndash;&gt;-->
            <!--        &lt;!&ndash;        </execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;    </executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;</plugin>&ndash;&gt;-->
            <!--        &lt;!&ndash;<plugin>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <groupId>org.apache.maven.plugins</groupId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <artifactId>maven-source-plugin</artifactId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <version>3.0.1</version>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;        <execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <id>attach-sources</id>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;                <goal>jar-no-fork</goal>&ndash;&gt;-->
            <!--        &lt;!&ndash;            </goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;        </execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;    </executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;</plugin>&ndash;&gt;-->
            <!--        &lt;!&ndash;<plugin>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <groupId>org.apache.maven.plugins</groupId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <artifactId>maven-gpg-plugin</artifactId>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <version>1.6</version>&ndash;&gt;-->
            <!--        &lt;!&ndash;    <executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;        <execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <id>sign-artifacts</id>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <phase>verify</phase>&ndash;&gt;-->
            <!--        &lt;!&ndash;            <goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;                <goal>sign</goal>&ndash;&gt;-->
            <!--        &lt;!&ndash;            </goals>&ndash;&gt;-->
            <!--        &lt;!&ndash;        </execution>&ndash;&gt;-->
            <!--        &lt;!&ndash;    </executions>&ndash;&gt;-->
            <!--        &lt;!&ndash;</plugin>&ndash;&gt;-->
            <!--    </plugins>-->
            <!--</build>-->
        </profile>
        <profile>
            <id>ossrh</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
    </profiles>


</project>