<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>

	<!--
		NOTE :
			Can not clearly divide config into normal profile & release profile as some config below to them both.
			So most config will in normal, only must in release in release profile
			
			Parent POM ONLY maintain :
				Project Info
				Global SDLC Build Cfg
					source encoding
					java version
					license
					release
						mvn release:prepare -Dusername=xxx -Dpassword=xxx
						mvn release:perform
					sign-artifacts
					
	-->

	<!-- The Basics -->
	<parent>
		<groupId>io.spring.platform</groupId>
		<artifactId>platform-bom</artifactId>
		<version>1.0.1.RELEASE</version>
		<relativePath />
	</parent>

	<groupId>net.gplatform</groupId>
	<artifactId>gplatform-parent</artifactId>
	<version>1.0.2</version>
	<packaging>pom</packaging>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<java.version>1.7</java.version>
		<!-- used by maven-compiler-plugin -->
		<maven.compiler.source>1.7</maven.compiler.source>
		<maven.compiler.target>1.7</maven.compiler.target>
		<!-- used by license-maven-plugin -->
		<license.licenseName>gpl_v2</license.licenseName>
	</properties>

	<!-- Build Settings -->
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5</version>
				<configuration>
					<tagNameFormat>@{project.version}</tagNameFormat>
					<releaseProfiles>release</releaseProfiles>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<!-- More Project Information -->
	<name>gplatform-parent</name>
	<description>parent project for all gplatform project</description>
	<url>http://www.gplatform.net</url>
	<inceptionYear>2013</inceptionYear>
	<licenses>
		<license>
			<name>GNU General Public License, version 2</name>
			<url>http://www.gnu.org/licenses/gpl-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<organization>
		<name>Shark Xu</name>
		<url>http://www.gplatform.net</url>
	</organization>
	<developers>
		<developer>
			<id>xfcjscn</id>
			<name>Shark</name>
			<email>xfcjscn@gmail.com</email>
		</developer>
	</developers>


	<!-- Environment Settings -->
	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/zwzwzw/gplatform-parent/issues</url>
	</issueManagement>
	<scm>
		<connection>scm:git:https://github.com/zwzwzw/gplatform-parent.git</connection>
		<developerConnection>scm:git:https://github.com/zwzwzw/gplatform-parent.git</developerConnection>
		<url>https://github.com/zwzwzw/gplatform-parent</url>
		<tag>1.0.2</tag>
	</scm>
	<distributionManagement>
		<repository>
			<id>sonatype-oss-stage</id>
			<name>sonatype-oss-stage</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>sonatype-oss-snapshot</id>
			<name>sonatype-oss-snapshot</name>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>license-maven-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>download-licenses</id>
								<goals>
									<goal>download-licenses</goal>
								</goals>
							</execution>
							<execution>
								<id>update-project-license</id>
								<goals>
									<goal>update-project-license</goal>
								</goals>
							</execution>
							<execution>
								<id>first</id>
								<goals>
									<goal>update-file-header</goal>
								</goals>
								<phase>process-sources</phase>
							</execution>
						</executions>
					</plugin>
					
					<!-- Note: variable gpg.passphrase need to used to specify password-->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
