<?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.zxyinfo</groupId>
  <artifactId>dependencies-parent</artifactId>
  <version>1.0.0</version>
  <packaging>pom</packaging>
  <name>dependencies-parent</name>
  <description>ZXY Info Co., Ltd Dependencies</description>
  <url>https://github.com/zxyinfo/dependencies-parent</url>
  <organization>
    <name>ZXY Info Co., Ltd</name>
    <url>http://www.zxyinfo.com</url>
  </organization>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
      <comments>Copyright 2014-2015 the original author or authors.

        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

        https://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
        implied.

        See the License for the specific language governing permissions and
        limitations under the License.</comments>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>joewee</id>
      <name>Wei.Zhou</name>
      <email>Wei.Zhou@chqinfo.com</email>
      <organization>ZXY Info, Co., Ltd</organization>
      <organizationUrl>http://www.zxyinfo.com</organizationUrl>
      <roles>
        <role>Project lead</role>
      </roles>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git://github.com/zxyinfo/dependencies-parent.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/zxyinfo/dependencies-parent.git</developerConnection>
    <url>https://github.com/zxyinfo/dependencies-parent</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>sonatype</id>
      <name>Sonatype Release Repository</name>
      <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>sonatype</id>
      <name>Sonatype Snapshot Repository</name>
      <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
    <downloadUrl>https://github.com/zxyinfo</downloadUrl>
  </distributionManagement>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.8</version>
        <extensions>true</extensions>
        <configuration>
          <!-- 这里的id必须要和全局配置中的release id 一致 -->
          <serverId>sonatype</serverId>
          <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
          <!-- 如果希望发布后自动执行close和release操作，此处可以调整为true -->
          <autoReleaseAfterClose>false</autoReleaseAfterClose>
        </configuration>
      </plugin>

      <!-- 生成java source.jar -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.1.0</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.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <additionalOptions>-Xdoclint:none</additionalOptions>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- 生成asc 校验文件 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <!-- 必须和配置中的gpg校验id一致 -->
            <id>gpg2</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>