Code Location: git://github.com/spring/JUnitSync.gitmaster
Browse
/
Download File
pom.xml
<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>com.springrts</groupId>
		<artifactId>parent</artifactId>
		<version>1.1</version>
	</parent>

	<properties>
		<jna.version>3.2.5</jna.version>
	</properties>

	<groupId>com.springrts</groupId>
	<artifactId>unitsync</artifactId>
	<version>0.3-SNAPSHOT</version>

	<packaging>bundle</packaging>

	<name>JUnitSync</name>
	<description>The Spring RTS info library wrapper</description>
	<url>http://springrts.com</url>
	<inceptionYear>2010</inceptionYear>

	<issueManagement>
		<system>github</system>
		<url>https://github.com/spring/JUnitSync/issues/</url>
	</issueManagement>

	<developers>
		<developer>
			<name>hoijui</name>
			<email>hoijui.quaero@gmail.com</email>
			<roles>
				<role>main developer</role>
			</roles>
		</developer>
	</developers>

	<contributors>
		<contributor>
			<name>jahwag (Cheesecan)</name>
			<email>jahziah.wagner@gmail.com</email>
			<roles>
				<role>patch writer</role>
			</roles>
		</contributor>
	</contributors>

	<scm>
		<connection>scm:git:git://github.com/spring/JUnitSync.git</connection>
		<url>http://github.com/spring/JUnitSync</url>
		<developerConnection>scm:git:ssh://git@github.com:spring/JUnitSync.git</developerConnection>
	</scm>

	<build>
		<defaultGoal>package</defaultGoal>

		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>2.3.6</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<!--<_donotcopy>(CVS|.svn|.git|config.properties)</_donotcopy>-->
						<Import-Package>org.osgi.framework,com.sun.jna,com.sun.jna.ptr</Import-Package>
						<Export-Package>com.springrts.unitsync,com.springrts.unitsync.impl.jna,com.sun.jna;version=${jna.version},com.sun.jna.ptr;version=${jna.version},com.sun.jna.win32;version=${jna.version}</Export-Package>
						<Private-Package>com.sun.jna.darwin,com.sun.jna.freebsd-amd64,com.sun.jna.freebsd-i386,com.sun.jna.linux-amd64,com.sun.jna.linux-i386,com.sun.linux-ia64,com.sun.jna.sunos-amd64,com.sun.jna.sunos-sparc,com.sun.jna.sunos-sparcv9,com.sun.jna.sunos-x86,com.sun.jna.win32-amd64,com.sun.jna.win32-x86</Private-Package>
						<Bundle-Activator>com.springrts.unitsync.impl.jna.Activator</Bundle-Activator>
						<Bundle-NativeCode>
							com/sun/jna/win32-x86/jnidispatch.dll;processor=x86;osname=win32,
							com/sun/jna/win32-amd64/jnidispatch.dll;processor=x86-64;osname=win32,
							com/sun/jna/sunos-x86/libjnidispatch.so;processor=x86;osname=sunos,
							com/sun/jna/sunos-amd64/libjnidispatch.so;processor=x86-64;osname=sunos,
							com/sun/jna/sunos-sparc/libjnidispatch.so;processor=sparc;osname=sunos,
							com/sun/jna/sunos-sparcv9/libjnidispatch.so;processor=sparcv9;osname=sunos,
							com/sun/jna/linux-i386/libjnidispatch.so;processor=x86;osname=linux,
							com/sun/jna/linux-amd64/libjnidispatch.so;processor=x86-64;osname=linux,
							com/sun/jna/freebsd-i386/libjnidispatch.so;processor=x86;osname=freebsd,
							com/sun/jna/freebsd-amd64/libjnidispatch.so;processor=x86-64;osname=freebsd,
							com/sun/jna/darwin/libjnidispatch.jnilib;osname=macos
						</Bundle-NativeCode>
					</instructions>
				</configuration>
			</plugin>

			<plugin>
				<groupId>com.jnaerator</groupId>
				<artifactId>maven-jnaerator-plugin</artifactId>
				<version>0.9.4</version>
				<executions>
					<execution>
						<!--
							To run this step alone:
							mvn com.jnaerator:maven-jnaerator-plugin:jnaerate
						-->
						<phase>generate-sources</phase>
						<goals>
							<goal>jnaerate</goal>
						</goals>
						<configuration>
							<sources>
								<source>${basedir}/src/main/native/unitsync_api.h</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<!--
							To compile JNA-Erator generated soures
						-->
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>target/generated-sources/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>

		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.core</artifactId>
			<version>4.3.0</version>
			<type>jar</type>
		</dependency>

		<dependency>
			<groupId>com.jnaerator</groupId>
			<artifactId>jnaerator-runtime</artifactId>
			<version>0.9.4</version>
			<scope>compile</scope>
		</dependency>

		<dependency>
			<groupId>net.java.dev.jna</groupId>
			<artifactId>jna</artifactId>
			<version>${jna.version}</version>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.10</version>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<repositories>
		<repository>
			<!-- For javax.transaction.jta -->
			<id>maven2-repository.dev.java.net</id>
			<name>Java.net Repository for Maven</name>
			<url>http://download.java.net/maven/2/</url>
			<layout>default</layout>
		</repository>

		<repository>
			<!-- JNA -->
			<id>nativelibs4java-repo</id>
			<name>NativeLibs4Java Maven Repository</name>
			<url>http://nativelibs4java.sourceforge.net/maven</url>
		</repository>

		<repository>
			<id>com.springsource.repository.bundles.release</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/release</url>
		</repository>
		<repository>
			<id>com.springsource.repository.bundles.external</id>
			<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
			<url>http://repository.springsource.com/maven/bundles/external</url>
		</repository>

		<repository>
			<id>com.springsource.repository.libraries.release</id>
			<name>SpringSource Enterprise Bundle Repository - SpringSource Library Releases</name>
			<url>http://repository.springsource.com/maven/libraries/release</url>
		</repository>
		<repository>
			<id>com.springsource.repository.libraries.external</id>
			<name>SpringSource Enterprise Bundle Repository - External Library Releases</name>
			<url>http://repository.springsource.com/maven/libraries/external</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<!-- JNA -->
			<id>nativelibs4java-pluginRepo</id>
			<url>http://nativelibs4java.sourceforge.net/maven</url>
		</pluginRepository>
	</pluginRepositories>

</project>