<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>org.onetwo4j</groupId>
	<artifactId>onetwo-parent</artifactId>
	<version>5.2.7</version>
	<packaging>pom</packaging>

	<name>onetwo-parent</name>
	<description>onetwo-parent</description>
    <url>https://github.com/wayshall/onetwo</url>

  <properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<java.version>1.8</java.version>
  <gpg.executable>gpg2</gpg.executable>
	<!-- <spring-boot.version>1.4.0.RELEASE</spring-boot.version> -->
  </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>zeng weishao</name>
        <email>weishao.zeng@gmail.com</email>
    </developer>
  </developers>

  <scm>
      <url>https://github.com/wayshall/onetwo</url>
      <connection>scm:git:ssh://git@github.com/wayshall/onetwo.git</connection>
      <developerConnection>scm:git:ssh://git@github.com/wayshall/onetwo.git</developerConnection>
    <tag>onetwo-modules-5.2.7</tag>
  </scm>
  
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
	
	<dependencyManagement>
	  <dependencies>
		<dependency>
	         <groupId>org.onetwo4j</groupId>
	         <artifactId>onetwo-bom</artifactId>
	         <version>5.2.7</version>
	         <type>pom</type>
	         <scope>import</scope>
	     </dependency>
	  </dependencies>
	</dependencyManagement>


	<build>
	   <pluginManagement>
	       <plugins>
		        <plugin>
		            <groupId>org.apache.maven.plugins</groupId>
		            <artifactId>maven-source-plugin</artifactId>
		            <version>3.0.1</version>
		        </plugin>
		        <!-- source code encoding -->
		        <plugin>
		           <groupId>org.apache.maven.plugins</groupId>
			       <artifactId>maven-resources-plugin</artifactId>
			       <version>3.0.2</version>
			       <configuration>
			         <encoding>utf-8</encoding>
			       </configuration>
		        </plugin>
	       </plugins>
	   </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>
				<compilerVersion>${java.version}</compilerVersion>
				<showWarnings>true</showWarnings>
				<encoding>utf-8</encoding>
				<compilerArgs>
					<arg>-parameters</arg>
				</compilerArgs>
			</configuration>
		</plugin>
	  </plugins>
	</build>
	
	<profiles>
	   <profile>
	       <id>release</id>
	       <build>
	           <plugins>
		        <plugin>
		            <groupId>org.apache.maven.plugins</groupId>
		            <artifactId>maven-source-plugin</artifactId>
		            <executions>
		                <execution>
		                    <phase>package</phase>
		                    <goals>
		                        <goal>jar-no-fork</goal>
		                    </goals>
		                </execution>
		            </executions>
		        </plugin>
		        <!-- Javadoc -->
		        <plugin>
		            <groupId>org.apache.maven.plugins</groupId>
		            <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.10.4</version>
		            <configuration>
		                <additionalparam>-Xdoclint:none</additionalparam>
		            </configuration>
		            <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.5</version>
	                 <executions>
	                     <execution>
							 <id>sign-artifacts</id>
	                         <phase>verify</phase>
	                         <goals>
	                             <goal>sign</goal>
	                         </goals>
							<configuration>
								<keyname>${gpg.keyname}</keyname>
								<passphraseServerId>ossrh</passphraseServerId>
								<gpgArguments>
									<arg>--pinentry-mode</arg>
									<arg>loopback</arg>
								</gpgArguments>
							</configuration>
	                     </execution>
	                 </executions>
	             </plugin>
								<plugin>
									<groupId>org.sonatype.plugins</groupId>
									<artifactId>nexus-staging-maven-plugin</artifactId>
									<version>1.6.7</version>
									<extensions>true</extensions>
									<configuration>
										<serverId>ossrh</serverId>
										<nexusUrl>https://oss.sonatype.org/</nexusUrl>
										<autoReleaseAfterClose>true</autoReleaseAfterClose>
									</configuration>
								</plugin>
	           </plugins>
	       </build>
	        <distributionManagement>
	            <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>