<?xml version="1.0" encoding="UTF-8"?>
<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>be.demmel.jgws</groupId>
	<artifactId>jgws</artifactId>
	<version>0.1.0_RC1-SNAPSHOT</version>
	<packaging>pom</packaging>
	<name>${project.artifactId}</name>

	<description>Java Guild Wars Server: A server emulator for Guild Wars</description>
	<url>https://bitbucket.org/idemmel/jgws</url>
	<inceptionYear>2011</inceptionYear>
	<organization>
		<name>Game Revision</name>
		<url>http://www.gamerevision.com</url>
	</organization>

	<distributionManagement>
		<!-- Needed by the site plugin -->
		<site>
			<id>site</id>
			<name>site</name>
			<url>file://tmp</url>
		</site>
		<!-- Needed by the release plugin -->
		<repository>
			<id>repo</id>
			<name>repo</name>
			<url>file://tmp</url>
		</repository>
	</distributionManagement>

	<scm>
		<!-- Used by the release plugin -->
		<connection>scm:git:git@bitbucket.org:idemmel/jgws.git</connection>
		<tag>HEAD</tag>
	</scm>

	<developers>
		<developer>
			<id>iDemmel</id>
			<url>http://www.gamerevision.com/index.php?action=profile;u=902</url>
			<organization>Game Revision</organization>
			<organizationUrl>http://www.gamerevision.com</organizationUrl>
			<roles>
				<role>Project Manager</role>
				<role>Developer</role>
			</roles>
			<timezone>+2</timezone>
		</developer>
	</developers>

	<modules>
		<module>schema-bindings</module>
		<module>packets</module>
		<module>core</module>
		<module>entities</module>
		<module>login-server</module>
		<module>game-server</module>
	</modules>

	<properties>
		<java.source>1.8</java.source>
		<java.target>1.8</java.target>
		<java.debug>true</java.debug>
		<java.optimize>true</java.optimize>
		<java.verbose>true</java.verbose>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>be.demmel.jgws</groupId>
				<artifactId>jgws-core</artifactId>
				<version>${project.version}</version>
			</dependency>

			<dependency>
				<groupId>be.demmel.jgws</groupId>
				<artifactId>jgws-entities</artifactId>
				<version>${project.version}</version>
			</dependency>
			
			<dependency>
				<groupId>be.demmel.jgws</groupId>
				<artifactId>jgws-packets</artifactId>
				<version>${project.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<dependencies>
		<!-- LOGBack for logging -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.6.4</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-core</artifactId>
			<version>1.0.0</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.0.0</version>
		</dependency>
		<dependency>
			<groupId>org.codehaus.groovy</groupId>
			<artifactId>groovy</artifactId>
			<version>1.8.3</version>
		</dependency>

		<!-- The dates used are from Joda-time -->
		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
			<version>2.0</version>
		</dependency>

		<!-- JUnit for testing -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.8.2</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>${java.source}</source>
					<target>${java.target}</target>
					<debug>${java.debug}</debug>
					<optimize>${java.optimize}</optimize>
					<verbose>${java.verbose}</verbose>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<!-- tagBase>https://test.com/svn/tags/</tagBase -->
					<!-- The goals must be set to deploy to avoid deploy-site running, which tries to deploy the site -->
					<goals>deploy</goals>
					<autoVersionSubmodules>true</autoVersionSubmodules>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-scm-plugin</artifactId>
				<version>1.5</version>
				<configuration>
					<connectionType>connection</connectionType>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-changes-plugin</artifactId>
				<version>2.6</version>
				<configuration>
					<!-- The changes.xml file will be searched in the root folder of the project, instead of the default src/changes folder -->
					<xmlPath>${basedir}</xmlPath>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.0</version>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.13</version>
			</plugin>
		</plugins>
	</build>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>2.4</version>
				<reportSets>
					<reportSet>
						<reports>
							<report>index</report>
							<report>summary</report>
							<report>project-team</report>
							<report>dependencies</report>
							<report>dependency-convergence</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.9</version>
			</plugin>
		</plugins>
	</reporting>

	<profiles>
		<profile>
			<id>mysql</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<bdd>mysql</bdd>
			</properties>
			<dependencies>
				<!-- Hibernate Dependencies: MYSQL -->
				<dependency>
					<groupId>mysql</groupId>
					<artifactId>mysql-connector-java</artifactId>
					<version>5.1.22</version>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>h2</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<bdd>h2</bdd>
			</properties>
			<dependencies>
				<!-- Hibernate Dependencies: H2 -->
				<dependency>
					<groupId>com.h2database</groupId>
					<artifactId>h2</artifactId>
					<version>1.3.170</version>
				</dependency>
			</dependencies>
		</profile>
	</profiles>
</project>
