<?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>

    <!--中文注解生成文档乱码，由maven默认的编码为gbk，新增系统环境变量解决。-->
    <groupId>com.kf5</groupId>
    <artifactId>java-client</artifactId>
    <!--  <version>1.0.1-SNAPSHOT</version>--><!--快照仓库版本号，有SNAPSHOT直接传入快照仓库，去掉SNAPSHOT传入发布仓库-->
    <version>1.0.4</version>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <!--正式发布仓库版本号-->

    <name>KF5 Java Client</name>
    <description>封装对外公开的API供开发者调用</description>
    <url>http://developer.kf5.com/restfulapi/core/</url>

    <!--编码设置-->
    <properties>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <additionalparam>-Xdoclint:none</additionalparam><!--忽略文档注释不严谨警告-->
    </properties>


    <!--证书-->
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Chosen</name>
            <email>812219713@qq.com</email>
        </developer>
    </developers>

    <scm>
        <url>https://github.com/KF5/JAVA-SDK</url>
        <connection>https://github.com/KF5/JAVA-SDK.git</connection>
        <developerConnection>http://www.kf5.com/</developerConnection>
    </scm>



    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <version>3.5.1</version>
                        <configuration>
                            <encoding>UTF-8</encoding>
                            <source>1.7</source>
                            <target>1.7</target>
                        </configuration>
                    </plugin>
                    <!-- Source -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.0.1</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <attach>true</attach>
                        </configuration>
                    </plugin>
                    <!-- Javadoc -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.10.4</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <show>public</show>
                            <charset>UTF-8</charset>
                            <encoding>UTF-8</encoding>
                            <docencoding>UTF-8</docencoding>
                        </configuration>
                    </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>
                </plugins>
            </build>

            <distributionManagement>
                <!--私服-->
                <!-- <repository>
                     <id>user-release</id>&lt;!&ndash;正式发布仓库id&ndash;&gt;
                     <url>http://localhost:8081/nexus/content/repositories/releases</url>&lt;!&ndash;正式发布仓库url&ndash;&gt;
                 </repository>
                 <snapshotRepository>
                     <id>user-snapshots</id>&lt;!&ndash;快照仓库id(暂理解为灰度版)&ndash;&gt;
                     <url>http://localhost:8081/nexus/content/repositories/snapshots</url>&lt;!&ndash;快照仓库url(赞理解为灰度版)&ndash;&gt;
                 </snapshotRepository>
         -->
                <!--远服-->
                <snapshotRepository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>

</project>