<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>com.kryshchuk</groupId>
	<artifactId>parent</artifactId>
	<version>1.4</version>
	<packaging>pom</packaging>

	<name>Parent POM</name>

	<description>Contains defaults and common behavior for all projects.</description>

	<url>http://ykryshchuk.github.io/parent/</url>

	<inceptionYear>2013</inceptionYear>

	<scm>
		<connection>scm:git:git://github.com/ykryshchuk/parent.git</connection>
		<developerConnection>scm:git:git@github.com:ykryshchuk/parent.git</developerConnection>
		<url>git@github.com:ykryshchuk/parent.git</url>
		<tag>parent-1.4</tag>
	</scm>

	<licenses>

		<license>
			<name>GNU GENERAL PUBLIC LICENSE</name>
			<url>http://www.gnu.org/licenses/gpl.html</url>
			<distribution>repo</distribution>
		</license>

	</licenses>

	<organization>
		<name>KOrga</name>
		<url>https://kryshchuk.com/</url>
	</organization>

	<developers>

		<developer>
			<id>ykryshchuk</id>
			<email>yuriy.kryshchuk@gmail.com</email>
			<name>Yuriy Kryshchuk</name>
			<timezone>2</timezone>
			<organization>KOrga</organization>
			<roles>
				<role>Developer</role>
			</roles>
		</developer>

	</developers>

	<build>

		<pluginManagement>

			<plugins>

				<plugin>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.10.1</version>
				</plugin>

				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>

				<plugin>
					<artifactId>maven-source-plugin</artifactId>
					<version>2.3</version>
				</plugin>

				<plugin>
					<artifactId>maven-project-info-reports-plugin</artifactId>
					<version>2.7</version>
				</plugin>

				<plugin>
					<artifactId>maven-jar-plugin</artifactId>
					<version>2.5</version>
				</plugin>

				<plugin>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.9</version>
				</plugin>

				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>2.7</version>
				</plugin>

				<plugin>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.5.1</version>
				</plugin>

				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.17</version>
				</plugin>

				<plugin>
					<artifactId>maven-surefire-report-plugin</artifactId>
					<version>2.17</version>
				</plugin>

				<plugin>
					<artifactId>maven-scm-plugin</artifactId>
					<version>1.9.2</version>
				</plugin>

				<plugin>
					<artifactId>maven-invoker-plugin</artifactId>
					<version>1.9</version>
				</plugin>

				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<source>${java-compiler-source.version}</source>
						<target>${java-compiler-target.version}</target>
					</configuration>
				</plugin>

				<plugin>
					<artifactId>maven-changes-plugin</artifactId>
					<version>2.11</version>
				</plugin>

				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>3.4</version>
					<configuration>
						<locales>en</locales>
						<reportPlugins>
							<plugin>
								<artifactId>maven-project-info-reports-plugin</artifactId>
								<configuration>
									<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
									<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
									<showAvatarImages>true</showAvatarImages>
									<linkOnly>true</linkOnly>
								</configuration>
								<reports>
									<report>summary</report>
									<report>license</report>
									<report>scm</report>
									<report>project-team</report>
									<report>dependencies</report>
								</reports>
							</plugin>
							<plugin>
								<artifactId>maven-javadoc-plugin</artifactId>
								<configuration>
									<docfilessubdirs>true</docfilessubdirs>
								</configuration>
								<reports>
									<report>javadoc</report>
								</reports>
							</plugin>
							<plugin>
								<artifactId>maven-surefire-report-plugin</artifactId>
							</plugin>
							<plugin>
								<artifactId>maven-changes-plugin</artifactId>
								<reports>
									<report>changes-report</report>
								</reports>
							</plugin>
						</reportPlugins>
					</configuration>
					<executions>
						<execution>
							<id>attach-descriptor</id>
							<goals>
								<goal>attach-descriptor</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions combine.children="append">
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>

			</plugins>

		</pluginManagement>

		<extensions>

			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-webdav-jackrabbit</artifactId>
				<version>2.7</version>
			</extension>

		</extensions>

	</build>

	<profiles>

		<profile>
			<id>GPG</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<artifactId>maven-gpg-plugin</artifactId>
							<version>1.5</version>
						</plugin>
					</plugins>
				</pluginManagement>
				<plugins>
					<plugin>
						<artifactId>maven-release-plugin</artifactId>
						<configuration>
							<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
						</configuration>
					</plugin>
					<plugin>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

		<profile>
			<id>RepoOSS</id>
			<pluginRepositories>
				<pluginRepository>
					<id>sonatype-nexus-staging</id>
					<name>Sonatype Staging Repository</name>
					<url>https://oss.sonatype.org/content/groups/staging/</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</pluginRepository>
				<pluginRepository>
					<id>sonatype-nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</pluginRepository>
			</pluginRepositories>
			<repositories>
				<repository>
					<id>sonatype-nexus-staging</id>
					<name>Sonatype Staging Repository</name>
					<url>https://oss.sonatype.org/content/groups/staging/</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
				<repository>
					<id>sonatype-nexus-snapshots</id>
					<name>Sonatype Nexus Snapshots</name>
					<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>
		</profile>

		<profile>
			<id>BuildHive</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<artifactId>maven-compiler-plugin</artifactId>
							<configuration>
								<executable>${jvm.home}/bin/javac</executable>
								<fork>true</fork>
							</configuration>
						</plugin>
						<plugin>
							<artifactId>maven-surefire-plugin</artifactId>
							<configuration>
								<jvm>${jvm.home}/bin/java</jvm>
								<forkMode>once</forkMode>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
			<properties>
				<jvm.home>/opt/jdk/jdk1.8.latest</jvm.home>
				<invoker.javaHome>${jvm.home}</invoker.javaHome>
			</properties>
		</profile>

		<profile>
			<id>Distribution-Local</id>
			<properties>
				<local.sites.url>file://${local.sites.baseDir}/${project.siteGroup}/${project.sitePath}</local.sites.url>
			</properties>
		</profile>

		<profile>
			<id>Distribution-Sonatype</id>
			<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-deploy</id>
					<name>Sonatype Nexus Staging Deploy</name>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
		</profile>

		<profile>
			<id>FixSource</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>com.kryshchuk.maven.plugins</groupId>
							<artifactId>fixsource-maven-plugin</artifactId>
							<version>1.1.5</version>
						</plugin>
					</plugins>
				</pluginManagement>
				<plugins>
					<plugin>
						<groupId>com.kryshchuk.maven.plugins</groupId>
						<artifactId>fixsource-maven-plugin</artifactId>
						<configuration>
							<header><![CDATA[
              ${project.name}
              Copyright (C) 2013  Yuriy Kryshchuk

              This program is free software: you can redistribute it and/or modify
              it under the terms of the GNU General Public License as published by
              the Free Software Foundation, either version 3 of the License, or
              (at your option) any later version.

              This program is distributed in the hope that it will be useful,
              but WITHOUT ANY WARRANTY; without even the implied warranty of
              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
              GNU General Public License for more details.

              You should have received a copy of the GNU General Public License
              along with this program.  If not, see <http://www.gnu.org/licenses />.
              ]]></header>
						</configuration>
						<executions>
							<execution>
								<id>fix-java-sources</id>
								<phase>process-sources</phase>
								<goals>
									<goal>fix-java</goal>
								</goals>
							</execution>
							<execution>
								<id>fix-test-java-sources</id>
								<phase>process-test-sources</phase>
								<goals>
									<goal>fix-test-java</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.eclipse.m2e</groupId>
						<artifactId>lifecycle-mapping</artifactId>
						<configuration>
							<lifecycleMappingMetadata>
								<pluginExecutions combine.children="append">
									<pluginExecution>
										<pluginExecutionFilter>
											<groupId>com.kryshchuk.maven.plugins</groupId>
											<artifactId>fixsource-maven-plugin</artifactId>
											<versionRange>[1.0,)</versionRange>
											<goals>
												<goal>fix-java</goal>
												<goal>fix-test-java</goal>
												<goal>fix-xml</goal>
											</goals>
										</pluginExecutionFilter>
										<action>
											<ignore />
										</action>
									</pluginExecution>
								</pluginExecutions>
							</lifecycleMappingMetadata>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<profile>
			<id>Report-Coverage</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.codehaus.mojo</groupId>
							<artifactId>cobertura-maven-plugin</artifactId>
							<version>2.6</version>
						</plugin>
						<plugin>
							<artifactId>maven-surefire-plugin</artifactId>
							<configuration>
								<!-- TODO Required for cobertura. Check later -->
								<argLine>-XX:-UseSplitVerifier</argLine>
							</configuration>
						</plugin>
						<plugin>
							<artifactId>maven-site-plugin</artifactId>
							<configuration>
								<reportPlugins combine.children="append">
									<plugin>
										<groupId>org.codehaus.mojo</groupId>
										<artifactId>cobertura-maven-plugin</artifactId>
										<configuration>
											<formats>
												<format>html</format>
												<format>xml</format>
											</formats>
											<aggregate>true</aggregate>
										</configuration>
									</plugin>
								</reportPlugins>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>

	</profiles>

	<dependencyManagement>

		<dependencies>

			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
				<version>1.10.7</version>
			</dependency>

			<dependency>
				<groupId>org.testng</groupId>
				<artifactId>testng</artifactId>
				<version>6.8.8</version>
			</dependency>

			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>1.7.7</version>
			</dependency>

			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>1.1.2</version>
			</dependency>

		</dependencies>

	</dependencyManagement>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<project.sitePath>${project.artifactId}</project.sitePath>
		<project.siteGroup>site</project.siteGroup>
		<java-compiler-source.version>1.8</java-compiler-source.version>
		<java-compiler-target.version>1.8</java-compiler-target.version>
	</properties>

</project>
