<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>
		<groupId>nl.knowledgeplaza</groupId>
		<artifactId>KPCompanyPom</artifactId>
		<version>1-SNAPSHOT</version>
	</parent>
	<groupId>nl.karpi</groupId>
	<artifactId>KarpiIMuis</artifactId>
	<version>1.0-SNAPSHOT</version>
	<name>Karpi IMuis wrapper</name>
	<packaging>jar</packaging>

	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpUtil</artifactId>					<version>1.16-SNAPSHOT</version>	</dependency>
		<dependency>	<groupId>log4j</groupId> 						<artifactId>log4j</artifactId>					<version>1.2.15</version>	</dependency>
		<dependency>	<groupId>javax.persistence</groupId> 			<artifactId>persistence-api</artifactId>		<version>1.0</version>	</dependency>
		<dependency>	<groupId>org.eclipse.persistence</groupId> 		<artifactId>javax.persistence</artifactId>		<version>2.0.0</version>	</dependency>
		<dependency>	<groupId>org.eclipse.persistence</groupId> 		<artifactId>eclipselink</artifactId>			<version>2.0.0</version>	</dependency>
		<dependency>	<groupId>jaxen</groupId> 						<artifactId>jaxen</artifactId>					<version>1.1.1</version>	<scope>provided</scope></dependency> 
		<dependency>	<groupId>dom4j</groupId> 						<artifactId>dom4j</artifactId>					<version>1.6.1</version>	</dependency>
		<dependency>	<groupId>xerces</groupId> 						<artifactId>xercesImpl</artifactId>				<version>2.6.2</version>	</dependency>
		<dependency>	<groupId>org.jvnet.com4j</groupId> 				<artifactId>com4j</artifactId>					<version>20080107</version>	</dependency>
		<dependency>	<groupId>org.jvnet.com4j</groupId> 				<artifactId>com4j</artifactId>					<version>20080107</version>	<type>dll</type></dependency>
		<dependency>	<groupId>com.microsoft</groupId>				<artifactId>SqlServerJDBC4Driver</artifactId>	<version>3.0</version>		<classifier>jdk1.6</classifier> </dependency>
		<dependency>	<groupId>junit</groupId> 						<artifactId>junit</artifactId>					<version>4.5</version>		<scope>test</scope>	</dependency>
		<dependency>	<groupId>xmlunit</groupId> 						<artifactId>xmlunit</artifactId>				<version>1.3</version>		<scope>test</scope>	</dependency>
	</dependencies>
	
	<!-- configure how the project is build -->
	<build>

		<!-- setup the source directories -->
		<sourceDirectory>java</sourceDirectory>
		<testSourceDirectory>java-test</testSourceDirectory>
		<resources>
			<resource>
				<directory>java</directory>
				<excludes>
					<exclude> **/*.java </exclude>
					<exclude> **/CVS </exclude>
				</excludes>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>java-test</directory>
				<excludes>
					<exclude> **/*.java </exclude>
					<exclude> **/CVS </exclude>
				</excludes>
			</testResource>
		</testResources>
	
		<plugins>	
			<!-- com4j to convert the dll to java -->
			<plugin>
				<groupId>org.jvnet.com4j</groupId>
				<artifactId>maven-com4j-plugin</artifactId>
				<version>1.0</version>
				<executions>
					<execution>
						<id>com4j</id>
						<goals>
							<goal>gen</goal>
						</goals>
						<configuration>
							<file>../../../vb6/imuisWrapper/IMuisWrapper.dll</file>
							<package>nl.karpi.imuis</package>
							<outputDirectory>java</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- setup the compiler -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<showDeprecation>false</showDeprecation>
					<fork>false</fork>
					 <compilerArgument></compilerArgument>
				</configuration>
			</plugin>
			
			<!-- add the dll to the release -->
			<plugin>
				 <groupId>org.codehaus.mojo</groupId>
				 <artifactId>build-helper-maven-plugin</artifactId>
				 <version>1.3</version>
				 <executions>
					 <execution>
						 <id>attach-distribution</id>
						 <phase>package</phase>
						 <goals>
							 <goal>attach-artifact</goal>
						 </goals>
						 <configuration>
							 <artifacts>
								 <artifact>
									 <file>../../../vb6/imuisWrapper/IMuisWrapper.dll</file>
									 <type>dll</type>
								 </artifact>
							 </artifacts>
						 </configuration>
					 </execution>
				 </executions>
			 </plugin>
			 
		</plugins>
	</build>
</project>
