<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>OpenPatricianImage</artifactId>
	<description>OpenPatrician module for images</description>
	<packaging>jar</packaging>
	<properties>
		<gen.dir>gen/main/java</gen.dir>
	</properties>
	<dependencies>
        <dependency>
            <groupId>ch.sahits.game</groupId>
            <artifactId>OpenPatricianModel</artifactId>
        </dependency>
		<dependency>
			<groupId>org.openjfx</groupId>
			<artifactId>javafx-swing</artifactId>
		</dependency>

		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<scope>provided</scope>
		</dependency>
		<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>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-api</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-engine</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.junit.vintage</groupId>
			<artifactId>junit-vintage-engine</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-params</artifactId>
		</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/polygonDefinition.xsd</xsd>
									<bindingFile>src/main/resources/jaxb-binding.xjb</bindingFile>
									<packagename>ch.sahits.game.graphic.data.polygon</packagename>
								</xsdOption>
								<xsdOption>
									<xsd>src/main/resources/imageDefinition.xsd</xsd>
									<bindingFile>src/main/resources/jaxb-binding.xjb</bindingFile>
									<packagename>ch.sahits.game.graphic.data.image</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>