<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.reinders</groupId>
	<artifactId>ReindersBM</artifactId>
	<packaging>jar</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>Reinders Business model</name>

	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpUtil</artifactId>					<version>1.18-SNAPSHOT</version>	</dependency>
		<dependency>	<groupId>org.antlr</groupId> 					<artifactId>antlr</artifactId>					<version>3.3</version>	</dependency>
		<dependency>	<groupId>log4j</groupId> 						<artifactId>log4j</artifactId>					<version>1.2.15</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.2</version>	</dependency>
		<dependency>	<groupId>net.sourceforge.collections</groupId> 	<artifactId>collections-generic</artifactId>	<version>4.01</version>		</dependency>
		<dependency>	<groupId>dom4j</groupId> 						<artifactId>dom4j</artifactId>					<version>1.6.1</version>	</dependency>
		<dependency>	<groupId>cglib</groupId> 						<artifactId>cglib-nodep</artifactId>			<version>2.2</version>		</dependency>
		<dependency>	<groupId>xerces</groupId> 						<artifactId>xercesImpl</artifactId>				<version>2.6.2</version>	</dependency>
		<dependency>	<groupId>com.informix</groupId> 				<artifactId>jdbc</artifactId>					<version>3.50.JC3</version>	</dependency>
		<dependency>	<groupId>com.google.api</groupId> 				<artifactId>googleTranslate</artifactId>		<version>0.92</version>		</dependency>
		<!-- dependency>	<groupId>net.sf.jasperreports</groupId>			<artifactId>jasperreports</artifactId>			<version>3.7.4</version>	</dependency -->
		<dependency>	<groupId>junit</groupId> 						<artifactId>junit</artifactId>					<version>4.5</version>		<scope>test</scope>	</dependency>
		<dependency>	<groupId>jaxen</groupId>						<artifactId>jaxen</artifactId>					<version>1.1.1</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>xmlunit</groupId>						<artifactId>xmlunit</artifactId>				<version>1.3</version>		<scope>test</scope>	</dependency>
		<!--
		<dependency>	<groupId>com.mysema.querydsl</groupId>			<artifactId>querydsl-apt</artifactId>			<version>1.8.1</version>	<scope>provided</scope>	</dependency>
		<dependency>	<groupId>com.mysema.querydsl</groupId>			<artifactId>querydsl-hql</artifactId>			<version>1.8.1</version>	</dependency>
		<dependency>	<groupId>org.slf4j</groupId> 					<artifactId>slf4j-log4j12</artifactId>			<version>1.5.8</version>	<scope>compile</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>
			<!-- setup the compiler -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<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.3</version>
				<executions>
					<execution>
						<goals>
							<goal>antlr</goal>
						</goals>
						<configuration>
							<outputDirectory>java</outputDirectory>
							<sourceDirectory>antlr3</sourceDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- generate meta classes for CriteriaBuilder -->
			<!-- hangs
			<plugin>
				<groupId>org.bsc.maven</groupId>
				<artifactId>maven-processor-plugin</artifactId>
				<version>1.3.5</version>
				<executions>
					<execution>
						<id>Generate the JPA2 meta classes</id>
						<goals>
							<goal>process</goal>
						</goals>
						<phase>generate-sources</phase>
						<configuration>
														<outputDirectory>${project.build.directory}/generated-sources/apt</outputDirectory>
							<compilerArguments>-Aeclipselink.persistencexml=java/META-INF/persistence.xml</compilerArguments>
							<processors>
								<processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</processor>
							</processors>
						</configuration>
					</execution>
				</executions>
			</plugin>
			-->
			<!-- generate the classes, but we can't use them in BM itself
			<plugin>
				<groupId>com.mysema.maven</groupId>
				<artifactId>maven-apt-plugin</artifactId>
				<version>0.3.2</version>
				<executions>
					<execution>
						<goals>
							<goal>process</goal>
						</goals>
						<configuration>
							<outputDirectory>target/generated-sources/java</outputDirectory>
							<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
						</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>
			<!-- create appjar -->
			<plugin>
				<groupId>nl.knowledgeplaza</groupId>
				<artifactId>knowledgeplaza-appjar-plugin</artifactId>
				<version>1.0-SNAPSHOT</version>
				<executions>
					<execution>
						<id>Create AppJar</id>
						<goals>
							<goal>package</goal> <!-- the goal has the phase configured -->
						</goals>
					</execution>
				</executions>
				<configuration>
					<startup>nl.reinders.bm.support.Update</startup>
					<args>-Xms256m -Xmx768m -Dlog4j.debug=true</args>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
