<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>
    <name>hhoss maven root pom</name>
    <artifactId>hhoss-pom-root</artifactId>
    <groupId>com.hhoss</groupId>
    <version>1.0.0</version>
    <packaging>pom</packaging>
    <description>hhoss pom root</description>
    <url>https://github.com/qqoss</url>
	<organization>
	  <name>hhoss framework</name>
	  <url>https://www.hhoss.com/home</url>
	</organization>
	<licenses>
	  <license>
	    <name>GNU General Public License, Version 3</name>
	    <url>https://www.gnu.org/licenses/gpl-3.0.html</url>
	    <distribution>repo</distribution>
	  </license>
	</licenses>
	<developers>
	  <developer><id>Kejun</id><name>Zheng Kejun</name><email>kejun@hhoss.com</email></developer>
	</developers>
    <scm>
        <url>${project.url}/${project.artifactId}</url>
        <connection>scm:git:${project.scm.url}</connection>
        <developerConnection>scm:git:${project.scm.url}</developerConnection>
    </scm>
    <issueManagement>
	  <system>GitHub</system>
	  <url>${project.scm.url}/issues</url>
	</issueManagement>
    <distributionManagement>
        <repository>
            <id>ossrh-releases</id>
            <name>sonatype repository to central</name>
            <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
            <id>ossrh-snapshots</id>
            <name>sonatype snapshot repository</name>
            <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
    </distributionManagement>
        <build>
        <plugins>
            <!-- default :  <groupId>org.apache.maven.plugins</groupId>  -->
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <configuration>
                    <attach>true</attach>
                </configuration>
                <executions>
                    <execution>
                        <phase>deploy</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9</version>
            </plugin>
            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.10</version>
                <configuration>
                    <skip>${maven.test.skip}</skip>
                    <testFailureIgnore>true</testFailureIgnore>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
			    <version>2.5.3</version> <!-- 2.3.2 -->
			    <configuration>
				  <autoVersionSubmodules>true</autoVersionSubmodules>
				  <useReleaseProfile>false</useReleaseProfile>
				  <releaseProfiles>release</releaseProfiles>
				  <goals>deploy nexus-staging:release</goals>
				  <!--
				  <goals>deploy</goals>
                  <server>deploy-maven-releases</server>
				-->
                </configuration>
            </plugin>
			<plugin>
			  <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>
		          </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://s01.oss.sonatype.org/</nexusUrl>
				 <autoReleaseAfterClose>true</autoReleaseAfterClose>
			  </configuration>
			</plugin>
        </plugins>
    </build>
</project>