1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<?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>1.9.3.9</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>
|