<?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>com.github.ozuo</groupId>
    <artifactId>mybatis-generator-extend</artifactId>
    <version>1.3</version>
    <name>mybatis-generator-extend</name>
    <description>mybatis generator plugin extend</description>


    <dependencies>
        <dependency>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-core</artifactId>
            <version>1.3.7</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>


    <properties>
        <!-- 此处配置的名称要和maven配置文件对应的serverId一致 -->
        <github.global.server>github</github.global.server>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <!-- 部署中央仓库会校验 start -->
    <url>https://github.com/ozuo/mybatis-generator-extend</url>
    <!-- 开源协议 -->
    <licenses>
        <license>
            <name>MIT License</name>
            <url>https://choosealicense.com/licenses/mit/</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <!-- 项目信息 -->
    <scm>
        <tag>main</tag>
        <url>https://github.com/ozuo/mybatis-generator-extend.git</url>
        <connection>https://github.com/ozuo/mybatis-generator-extend.git</connection>
        <developerConnection>https://github.com/ozuo/mybatis-generator-extend.git</developerConnection>
    </scm>
    <!-- 作者信息 -->
    <developers>
        <developer>
            <name>ozuo</name>
            <email>zuoyixiao@qq.com</email>
            <url>https://github.com/ozuo/mybatis-generator-extend</url>
        </developer>
    </developers>
    <!-- 部署中央仓库会校验 end -->


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.2.0</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <fork>true</fork>
                    <verbose>true</verbose>
                    <encoding>UTF-8</encoding>
                    <showWarnings>false</showWarnings>
                </configuration>
            </plugin>

            <!-- 上传源码到仓库 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.2.1</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Javadoc 部署中央仓库会校验 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.2.0</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.6</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
            </plugin>


            <!-- 发布到github仓库 -->
            <!--            <plugin>-->
            <!--                <groupId>org.apache.maven.plugins</groupId>-->
            <!--                <artifactId>maven-deploy-plugin</artifactId>-->
            <!--                <version>2.8.2</version>-->
            <!--                <configuration>-->
            <!--                    &lt;!&ndash; 配置本地打包后的本地仓库存储地址，后续上传jar包会从此仓库中去取 &ndash;&gt;-->
            <!--                    <altDeploymentRepository>-->
            <!--                        internal.repo::default::file://${project.build.directory}/maven-repository-->
            <!--                    </altDeploymentRepository>-->
            <!--                </configuration>-->
            <!--            </plugin>-->
            <!--            <plugin>-->
            <!--                <groupId>org.apache.maven.plugins</groupId>-->
            <!--                <artifactId>maven-site-plugin</artifactId>-->
            <!--                <version>3.8.2</version>-->
            <!--            </plugin>-->
            <!--            <plugin>-->
            <!--                <groupId>com.github.github</groupId>-->
            <!--                <artifactId>site-maven-plugin</artifactId>-->
            <!--                <version>0.12</version>-->
            <!--                <configuration>-->
            <!--                    <message>Maven artifacts for ${project.artifactId}-${project.version}</message>-->
            <!--                    <noJekyll>true</noJekyll>-->
            <!--                    &lt;!&ndash; 指定从哪里去取打好的包，并上传至github &ndash;&gt;-->
            <!--                    <outputDirectory>${project.build.directory}/maven-repository</outputDirectory>-->
            <!--                    &lt;!&ndash; 指定要上传的分支, refs/heads 这个不变，后面的分支名可选 &ndash;&gt;-->
            <!--                    <branch>refs/heads/main</branch>-->
            <!--                    &lt;!&ndash; 包含outputDirectory标签内填的文件夹中的所有内容 &ndash;&gt;-->
            <!--                    <includes>-->
            <!--                        <include>**/*</include>-->
            <!--                    </includes>-->
            <!--                    &lt;!&ndash; github远程仓库名称 &ndash;&gt;-->
            <!--                    <repositoryName>mvn-repo</repositoryName>-->
            <!--                    &lt;!&ndash; github的用户名，注意不是登录的用户名，此项需要登录后，进入https://github.com/settings/profile页面配置Name属性 &ndash;&gt;-->
            <!--                    <repositoryOwner>ozuo</repositoryOwner>-->
            <!--                </configuration>-->
            <!--                <executions>-->
            <!--                    <execution>-->
            <!--                        <goals>-->
            <!--                            <goal>site</goal>-->
            <!--                        </goals>-->
            <!--                        <phase>deploy</phase>-->
            <!--                    </execution>-->
            <!--                </executions>-->
            <!--            </plugin>-->
        </plugins>
    </build>

    <distributionManagement>
        <!-- 部署到中央仓库 本地部署时注释掉-->
        <repository>
            <id>sonatypeoss</id>
            <name>Nexus Release Repository</name>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
        </repository>
        <snapshotRepository>
            <id>sonatypeoss</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>


        <!-- 部署到公司私服 部署中央仓库时注释掉 -->
<!--        <repository>-->
<!--            <id>kyh-nexus-releases</id>-->
<!--            <name>KYH Release</name>-->
<!--            <url>http://10.161.16.174:8081/repository/maven-releases/</url>-->
<!--        </repository>-->
<!--        <snapshotRepository>-->
<!--            <id>kyh-nexus-snapshots</id>-->
<!--            <name>KYH Snapshots</name>-->
<!--            <url>http://10.161.16.174:8081/repository/maven-snapshots/</url>-->
<!--        </snapshotRepository>-->
    </distributionManagement>
</project>