<?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>
	<artifactId>robocode.dotnet.nhost</artifactId>
	<name>Robocode .NET nHost</name>
	<description>.NET nhost for Robocode</description>
	<packaging>dotnet:library</packaging>
	<parent>
		<artifactId>robocode.dotnet</artifactId>
		<groupId>net.sf.robocode</groupId>
		<version>${robocode.dotnet.version}</version>
	</parent>
	<dependencies>
		<dependency>
			<groupId>net.sf.jni4net</groupId>
			<artifactId>jni4net.n</artifactId>
			<version>0.8.7.0</version>
			<type>dotnet:library</type>
		</dependency>
		<dependency>
			<groupId>net.sf.robocode</groupId>
			<artifactId>robocode.dotnet.api</artifactId>
			<version>${project.version}</version>
			<type>dotnet:library</type>
		</dependency>
		<dependency>
			<groupId>net.sf.robocode</groupId>
			<artifactId>robocode.dotnet.control.api</artifactId>
			<version>${project.version}</version>
			<type>dotnet:library</type>
		</dependency>
	</dependencies>
	<build>
		<sourceDirectory>src</sourceDirectory>
		<plugins>
			<plugin>
				<groupId>org.sonatype.nmaven.plugins</groupId>
				<artifactId>maven-dotnet-compiler-plugin</artifactId>
				<configuration>
					<aditionalOptions>/unsafe /warn:0 /nowarn:1591 /keyfile:"${basedir}/../tools/keys/robocode.snk"</aditionalOptions>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
				<artifactId>maven-antrun-extended-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-classes</phase>
						<configuration>
							<tasks>
								<resolveArtifact
									property="jni4net.n"
									groupId="net.sf.jni4net"
									artifactId="jni4net.n"
									version="0.8.7.0"
									type="dotnet:library"/>
								<copy
									file="${jni4net.n}"
									todir="target"/>
								<resolveArtifact
									property="robocode.dotnet.api"
									groupId="net.sf.robocode"
									artifactId="robocode.dotnet.api"
									version="${project.version}"
									type="dotnet:library" />
								<copy
									file="${robocode.dotnet.api}"
									tofile="target/robocode.dll" />
								<resolveArtifact
									property="robocode.dotnet.control.api"
									groupId="net.sf.robocode"
									artifactId="robocode.dotnet.control.api"
									version="${project.version}"
									type="dotnet:library" />
								<copy
									file="${robocode.dotnet.control.api}"
									tofile="target/robocode.control.dll" />
								<!-- Used for generateProxies.cmd -->
								<copy
									file="target/robocode.dotnet.nhost-${project.version}.dll"
									tofile="target/robocode.dotnet.nhost.dll" />
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
