<?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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>OpenPatrician</artifactId>
		<groupId>ch.sahits.game</groupId>
		<version>1.0.0_RC2</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<artifactId>OpenPatricianModel</artifactId>
	<packaging>jar</packaging>

	<name>OpenPatricianModel</name>
	<description>OpenPatrician models</description>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <gen.dir>gen/main/java</gen.dir>
	</properties>

	<dependencies>
		<!-- Module dependencies -->
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>OpenPatricianUtilities</artifactId>
		</dependency>
		<dependency>
			<groupId>ch.sahits.game</groupId>
			<artifactId>GameEvent</artifactId>
		</dependency>
		<dependency>
			<groupId>ch.sahits.game</groupId>
			<artifactId>MarvinFXEssentials</artifactId>
			<scope>test</scope>
		</dependency>
		<!-- Spring Framework -->

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-autoconfigure</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-oxm</artifactId>
		</dependency>
		<dependency>
			<groupId>org.glassfish.jaxb</groupId>
			<artifactId>jaxb-runtime</artifactId>
		</dependency>
		<!-- Other libraries -->

		<!--<dependency>-->
			<!--<groupId>org.springframework.boot</groupId>-->
			<!--<artifactId>spring-boot-starter-log4j2</artifactId>-->
		<!--</dependency>-->
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
			<scope>provided</scope>
        </dependency>
		<dependency>
			<groupId>ch.sahits</groupId>
			<artifactId>sahitsUtil</artifactId>
		</dependency>

		<!-- Test -->

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>ch.sahits.game</groupId>
			<artifactId>OpenPatricianData</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>ch.sahits.game</groupId>
			<artifactId>OpenPatricianTestUtilities</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>
		<plugins>
			<plugin>
				<groupId>org.apache.cxf</groupId>
				<artifactId>cxf-xjc-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-sources</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>xsdtojava</goal>
						</goals>
						<configuration>
							<xsdOptions>
								<xsdOption>
									<xsd>src/main/resources/map.xsd</xsd>
									<bindingFile>src/main/resources/jaxb-binding.xjb</bindingFile>
									<packagename>ch.sahits.game.openpatrician.data.xmlmodel.map</packagename>
								</xsdOption>
								<xsdOption>
									<xsd>src/main/resources/weaponLocation.xsd</xsd>
									<bindingFile>src/main/resources/jaxb-binding.xjb</bindingFile>
									<packagename>ch.sahits.game.openpatrician.data.xmlmodel.weapon</packagename>
								</xsdOption>
							</xsdOptions>
						</configuration>
					</execution>
				</executions>
			</plugin>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>${gen.dir}</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>

        </plugins>
	</build>

</project>
