<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<!-- <parent> <groupId>com.threerings</groupId> <artifactId>narya-parent</artifactId> 
		<version>1.13-HEXNOVA</version> </parent> -->
	<groupId>com.threerings</groupId>
	<artifactId>narya</artifactId>
	<packaging>jar</packaging>
	<name>Narya Core</name>
	<version>1.13-HEXNOVA-SNAPSHOT</version>
	<dependencies>
		<!-- exported dependencies -->
		<dependency>
			<groupId>com.google.inject</groupId>
			<artifactId>guice</artifactId>
			<version>2.0</version>
		</dependency>

		<dependency>
			<groupId>javax.annotation</groupId>
			<artifactId>jsr250-api</artifactId>
			<version>1.0</version>
		</dependency>

		<!-- optional dependencies -->
		<dependency>
			<groupId>com.samskivert</groupId>
			<artifactId>depot</artifactId>
			<version>1.7-HEXNOVA-SNAPSHOT</version>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>net.sf.ehcache</groupId>
			<artifactId>ehcache</artifactId>
			<version>1.6.0</version>
			<optional>true</optional>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.threerings</groupId>
			<artifactId>gwt-utils</artifactId>
			<version>1.8</version>
			<optional>true</optional>
			<scope>test</scope>
		</dependency>

		<!-- test/build dependencies -->
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<version>2.4.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.ant</groupId>
			<artifactId>ant</artifactId>
			<version>1.7.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.10</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<version>2.0.0</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.threerings</groupId>
			<artifactId>resource-manager</artifactId>
			<version>1.0-HEXNOVA</version>
		</dependency>
	</dependencies>

	<build>
		<!-- include the source files in our main jar for use by GWT -->
		<resources>
			<resource>
				<directory>${project.build.sourceDirectory}</directory>
				<includes>
					<include>**/*.gwt.xml</include>
<!-- 					<include>**/web/server/*Exception.java</include>
					<include>**/web/client/*.java</include>
					<include>**/web/gwt/*.java</include> -->
				</includes>
				<excludes>
					<exclude>**/admin/web/client/*.java</exclude>
					<exclude>**/admin/web/server/*.java</exclude>
					<exclude>**/EHCachePeerCoordinator.java</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<encoding>UTF8</encoding>
					<source>1.8</source>
					<target>1.8</target>
					<fork>true</fork>
					<excludes>
						<exclude>com/threerings/presents/peer/server/EHCachePeerCoordinator.java</exclude>
						<exclude>com/threerings/admin/web/**</exclude>
					</excludes>
					<showDeprecation>true</showDeprecation>
					<showWarnings>true</showWarnings>
					<!-- yes, those quoted spaces are a workaround sanctioned by the Maven 
						idiocracy -->
					<compilerArgument>-Xlint" "-Xlint:-serial" "-Xlint:-path</compilerArgument>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<encoding>UTF8</encoding>
				</configuration>
			</plugin>
			
		</plugins>
	</build>
	<repositories>
		<repository>
			<id>internal</id>
			<url>http://maven.hexnova.com/nexus/content/groups/public</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>AWLAYS</updatePolicy>
			</snapshots>
		</repository>
	</repositories>
	<distributionManagement>
		<repository>
			<id>releases</id>
			<name>Internal Releases</name>
			<url>http://maven.hexnova.com/nexus/content/repositories/releases</url>
		</repository>
		<snapshotRepository>
			<id>snapshots</id>
			<name>Internal snapshots</name>
			<url>http://maven.hexnova.com/nexus/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>
</project>
