<?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>io.gitee.h25094152</groupId>
    <artifactId>wh-tool</artifactId>
    <version>1.0</version>
    <packaging>jar</packaging>
    <!-- 都是必不可少的，其中url为自己的github的项目位置 -->

    <name>wh-tool</name>
    <description>wh-tool</description>
    <url>https://gitee.com/h25094152/wh-tool</url>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

    <properties>
        <project.bulid.soruceEncodeing>UTF-8</project.bulid.soruceEncodeing>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.complier.source>1.8</maven.complier.source>
        <maven.complier.target>1.8</maven.complier.target>
        <java.version>1.8</java.version>
        <mp.version>3.3.2</mp.version>
        <spring-boot.version>2.1.9.RELEASE</spring-boot.version>
        <serverId>ossrh</serverId>
        <gpg.keyname>155F96E5</gpg.keyname>
        <skipTest>true</skipTest>
    </properties>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <tag>wh-tool</tag>
        <url>https://gitee.com/h25094152/wh-tool</url>
        <connection>scm:git:https://gitee.com/h25094152/wh-tool.git</connection>
    </scm>


    <!-- 问题题问地址 -->
    <issueManagement>
        <system>gitee</system>
        <url>https://gitee.com/h25094152/wh-tool</url>
    </issueManagement>

    <!-- 机构信息 -->
    <organization>
        <name>豆腐渣工作室</name>
        <url>https://gitee.com/h25094152/wh-tool.git</url>
    </organization>

    <!-- 开发者信息 -->
    <developers>
        <developer>
            <name>h25094152</name>
            <email>h25094152@163.com</email>
            <organization>豆腐渣工作室</organization>
            <organizationUrl>https://gitee.com/h25094152/wh-tool</organizationUrl>
        </developer>
    </developers>

    <!-- 引入需要的依赖-->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <!-- 下方url一般都是如此，从官方文档中也能看到 -->

    <distributionManagement>
        <snapshotRepository>
            <id>${serverId}</id>
            <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>${serverId}</id>
            <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>


    <!-- 解决将依赖包也一并打入jar包  <finalName>preview-officefile-1.0</finalName>-->


            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>3.8.0</version>
                        <configuration>
                            <source>${maven.complier.source}</source>
                            <target>${maven.complier.target}</target>
                        </configuration>
                    </plugin>
<!--                    <plugin>-->
<!--                        <groupId>org.sonatype.plugins</groupId>-->
<!--                        <artifactId>nexus-staging-maven-plugin</artifactId>-->
<!--                        <version>1.6.7</version>-->
<!--                        <extensions>true</extensions>-->
<!--                        <configuration>-->
<!--                            <serverId>${serverId}</serverId>-->
<!--                            <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>-->
<!--                            <autoReleaseAfterClose>true</autoReleaseAfterClose>-->
<!--                        </configuration>-->
<!--                    </plugin>-->
                    <!-- 配置打包上传到sonatype及maven中央仓库 -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>2.1</version>
                        <configuration>
                            <attach>true</attach>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- 生成的javadoc，关闭doclint，避免注解检查不通过 -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.9.1</version>
                        <configuration>
                            <attach>true</attach>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <phase>package</phase>
                                <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>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>

            </build>




<!--    <distributionManagement>-->
<!--        <repository>-->
<!--            <id>maven setting.xml配的id</id>  &lt;!&ndash; 即可maven setting.xml配置的id &ndash;&gt;-->
<!--            <name>Stage repository</name>-->
<!--            <url>-->
<!--                https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/-->
<!--            </url>-->
<!--        </repository>-->

<!--        <snapshotRepository>-->
<!--            <id>setting.xml配的id</id>-->
<!--            <name>Snapshots repository</name>-->
<!--            <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>-->
<!--        </snapshotRepository>-->

<!--    </distributionManagement>-->


</project>