<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>KarpiBM</artifactId>
	<version>1.0-SNAPSHOT</version>
	<name>Karpi Business model</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>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>nl.karpi</groupId>						<artifactId>KarpiIMuis</artifactId>				<version>1.0-SNAPSHOT</version>		</dependency>
		<dependency>	<groupId>nl.karpi</groupId>						<artifactId>KarpiIMuis</artifactId>				<version>1.0-SNAPSHOT</version>		<type>dll</type></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>	
			<!-- 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>

			<!-- ANTLR plugin http://antlr.org/antlr3-maven-plugin/usage.html -->
			<plugin>
				<groupId>org.antlr</groupId>
				<artifactId>antlr3-maven-plugin</artifactId>
				<version>3.1.3-1</version>
				<executions>
					<execution>
						<goals>
							<goal>antlr</goal>
						</goals>
						<configuration>
							<outputDirectory>java</outputDirectory>
							<sourceDirectory>antlr3</sourceDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<!-- Eclipselink static weaving using ANT -->
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>Eclipselink static weaving (replaces class files)</id>
						<phase>process-classes</phase>
						<configuration>
							<tasks>
								<taskdef
									name="weave"
									classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeaveAntTask"
									classpathref="maven.test.classpath"/>
								<weave
									loglevel="INFO"
									source="${basedir}/target/classes"
									target="${basedir}/target/classes"
									persistenceinfo="${basedir}/java">
									<classpath refid="maven.test.classpath"/>
								</weave>

								<!--
								<java classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeave"
									classpathref="maven.test.classpath"
									fork="true">
									<arg
										line="-loglevel FINEST -persistenceinfo src/main/resources target/classes target/classes"/>
								</java>
								-->
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
