<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>cn.nexthuman.open</groupId>
  <artifactId>nextsrv-java</artifactId>
  <packaging>jar</packaging>
  <version>1.0.7</version>
  <name>nextsrv-java</name>
  <description>NextHuman开放平台服务端JavaSDK</description>
  <url>http://maven.apache.org</url>
  
  <!-- maven中心仓库发布配置手册 http://t.zoukankan.com/songyz-p-11387978.html -->
  <!-- gpg签名失败解决办法：https://www.jianshu.com/p/7a697480fa19 -->
  <!-- release发布： https://www.dandelioncloud.cn/article/details/1497150981434609666 -->

  <properties>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
  </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>
 <scm>
     <connection>scm:git:https://github.com/WeHome007/NextSRV.git</connection>
     <developerConnection>scm:git:https://github.com/WeHome007/NextSRV.git</developerConnection>
     <url>git:https://github.com/WeHome007/NextSRV.git</url>
 </scm>
 <developers>
     <developer>
         <name>bruce</name>
         <email>bruce@wehome.cn</email>
         <organization>WeHome</organization>
     </developer>
 </developers>

 <dependencies>
   <dependency>
     <groupId>com.alibaba</groupId>
     <artifactId>fastjson</artifactId>
     <version>1.2.62</version>
   </dependency>
   <dependency>
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt-api</artifactId>
       <version>0.11.2</version>
   </dependency>
   <dependency>
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt-impl</artifactId>
       <version>0.11.2</version>
   </dependency>
   <dependency>
       <groupId>io.jsonwebtoken</groupId>
       <artifactId>jjwt-jackson</artifactId>
       <version>0.11.2</version>
   </dependency>
</dependencies>

<profiles>
	<profile>
	     <id>release</id>
	     <build>
	         <resources>
	             <resource>
	                 <directory>src/main/java</directory>
	                 <includes>
	                     <include>**/*.properties</include>
	                 </includes>
	             </resource>
	         </resources>
	         <plugins>
	             <!-- Source -->
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-source-plugin</artifactId>
	                 <version>2.2.1</version>
	                 <executions>
	                     <execution>
	                         <phase>package</phase>
	                         <goals>
	                             <goal>jar-no-fork</goal>
	                         </goals>
	                     </execution>
	                 </executions>
	             </plugin>
	             <!-- GPG -->
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-gpg-plugin</artifactId>
	                 <version>1.5</version>
	                 <executions>
	                     <execution>
	                         <phase>verify</phase>
	                         <goals>
	                             <goal>sign</goal>
	                         </goals>
	                     </execution>
	                 </executions>
	             </plugin>
	              <!-- Javadoc -->
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-javadoc-plugin</artifactId>
	                 <version>2.9.1</version>
	                 <configuration>
	                     <show>private</show>
	                     <nohelp>true</nohelp>
	                     <charset>UTF-8</charset>
	                     <encoding>UTF-8</encoding>
	                     <docencoding>UTF-8</docencoding>
	                     <additionalparam>-Xdoclint:none</additionalparam>
	                     <!-- TODO 临时解决不规范的javadoc生成报错,后面要规范化后把这行去掉 -->
	                 </configuration>
	                 <executions>
	                     <execution>
	                         <phase>package</phase>
	                         <goals>
	                             <goal>jar</goal>
	                         </goals>
	                     </execution>
	                 </executions>
	             </plugin>
	             <!--Compiler -->
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-compiler-plugin</artifactId>
	                 <version>3.0</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>
	             <!--Release -->
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-release-plugin</artifactId>
	                 <version>2.5.1</version>
	             </plugin>
	         </plugins>
	     </build>
	     <distributionManagement>
	         <snapshotRepository>
	             <id>sonatype-nexus-snapshots</id>
	             <name>Sonatype Nexus Snapshots</name>
	             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
	         </snapshotRepository>
	         <repository>
	             <id>sonatype-nexus-staging</id>
	             <name>Nexus Release Repository</name>
	             <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
	         </repository>
	     </distributionManagement>
	 </profile>
  </profiles>
</project>
