<?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>cn.com.jeeweb</groupId>
    <artifactId>parent-oss</artifactId>
    <version>3.0.8</version>
    <packaging>pom</packaging>

    <name>${project.artifactId}</name>
    <url>https://www.jeeweb.com.cn</url>
    <description>Java工具类库，通过静态方法封装，降低相关API的学习成本，提高工作效率</description>

    <modules>
        <module>../common</module>
        <module>../common-cert</module>
        <module>../common-compress</module>
        <module>../common-ehcache2</module>
        <module>../common-exec</module>
        <module>../common-http</module>
        <module>../common-http-apache</module>
        <module>../common-http-jdk</module>
        <module>../common-image</module>
        <module>../common-io</module>
        <module>../common-jwt</module>
        <module>../common-mail</module>
        <module>../common-minio</module>
        <module>../common-poi</module>
        <module>../common-quartz</module>
        <module>../common-security</module>
        <module>../common-zxing</module>
    </modules>

    <properties>
        <java.version>1.8</java.version>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <common.version>${project.version}</common.version>
        <common-cert.version>${project.version}</common-cert.version>
        <common-compress.version>${project.version}</common-compress.version>
        <common-ehcache2.version>${project.version}</common-ehcache2.version>
        <common-exec.version>${project.version}</common-exec.version>
        <common-http.version>${project.version}</common-http.version>
        <common-http-apache.version>${project.version}</common-http-apache.version>
        <common-http-jdk.version>${project.version}</common-http-jdk.version>
        <common-image.version>${project.version}</common-image.version>
        <common-io.version>${project.version}</common-io.version>
        <common-jwt.version>${project.version}</common-jwt.version>
        <common-mail.version>${project.version}</common-mail.version>
        <common-minio.version>${project.version}</common-minio.version>
        <common-poi.version>${project.version}</common-poi.version>
        <common-quartz.version>${project.version}</common-quartz.version>
        <common-security.version>${project.version}</common-security.version>
        <common-zxing.version>${project.version}</common-zxing.version>
    </properties>

    <developers>
        <developer>
            <name>LiuJun</name>
            <email>sxnu_liujun@qq.com</email>
            <roles>
                <role>Project Manager</role>
                <role>Architect</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
    </developers>

    <licenses>
        <license>
            <name>The Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <scm>
        <url>https://gitee.com/public_source/jeeweb</url>
        <connection>https://gitee.com/public_source/jeeweb.git</connection>
        <developerConnection>scm:git:https://gitee.com/public_source/jeeweb.git</developerConnection>
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>${server.snapshots.id}</id>
            <url>${snapshot.repository}</url>
        </snapshotRepository>
        <repository>
            <id>${server.releases.id}</id>
            <url>${releases.repository}</url>
        </repository>
    </distributionManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.5.1</version>
                    <configuration>
                        <source>${java.version}</source>
                        <target>${java.version}</target>
                        <encoding>${project.build.sourceEncoding}</encoding>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.3</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar-no-fork</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.0.0-M1</version>
                    <configuration>
                        <show>private</show>
                        <nohelp>true</nohelp>
                        <charset>UTF-8</charset>
                        <encoding>UTF-8</encoding>
                        <docencoding>UTF-8</docencoding>
                        <!-- 防止文档不规范报错 -->
                        <additionalparam>-Xdoclint:none</additionalparam>
                    </configuration>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <phase>compile</phase>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                            <configuration>
                                <additionalparam>-Xdoclint:none</additionalparam>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.8.2</version>
                </plugin>
                <!--OSS Start-->
                <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>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.7</version>
                    <extensions>true</extensions>
                    <executions>
                        <execution>
                            <phase>deploy</phase>
                        </execution>
                    </executions>
                    <configuration>
                        <serverId>${server.releases.id}</serverId>
                        <nexusUrl>${nexus.url}</nexusUrl>
                        <autoReleaseAfterClose>true</autoReleaseAfterClose>
                    </configuration>
                </plugin>
                <!--OSS End-->
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
            </plugin>
            <!--OSS Start-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
            </plugin>
            <!--OSS End-->
        </plugins>
    </build>
</project>
