<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.innovationinvestments</groupId>
		<artifactId>Cheyenne</artifactId>
		<version>1.10-SNAPSHOT</version>
	</parent>
	<artifactId>CheyenneEngine</artifactId>
	<packaging>jar</packaging>
	<name>InnovationInvestments Cheyenne Engine</name>

	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpUtil</artifactId>					<version>1.13</version>		</dependency>
		<!-- for the workflow, since it is not used we make the scope provided so the jars are not included in the distribution -->
		<dependency>	<groupId>org.jbpm.jbpm3</groupId>				<artifactId>jbpm-identity</artifactId>			<version>3.3.1.GA</version>	<scope>provided</scope>	</dependency>
		<dependency>	<groupId>org.hibernate</groupId>				<artifactId>hibernate</artifactId>				<version>3.2.6.ga</version>	<scope>provided</scope>	</dependency>
		<!-- test -->
		<dependency>	<groupId>org.hsqldb</groupId>					<artifactId>hsqldb</artifactId>					<version>1.8.0.10</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>dom4j</groupId> 						<artifactId>dom4j</artifactId>					<version>1.6.1</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>jaxen</groupId>						<artifactId>jaxen</artifactId>					<version>1.1.1</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>
	
		<!-- configure default plugins -->
		<pluginManagement>
			<plugins>
				<!-- skip the workflow tests because they throw a org.hibernate.MappingNotFoundException: resource: org/jbpm/identity/User.hbm.xml not found -->
				<!-- in the original pre-maven jars jbpm-identity-3.2.3.jar contained hbm.xml files for these definitions, apparently these 3.2.4+ don't anymore -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.5</version>
					<configuration>
						<excludes>
							<exclude>**/TestEngineWorkflow.java</exclude>
						</excludes>
					</configuration>
			  </plugin>
			</plugins>
		</pluginManagement>
		
		<!-- configure additional plugins -->
		<plugins>	
			<!-- copy all dependency jars to a directory (for eclipse without m2eclipse)  -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.1</version>
				<executions>
					<!-- run the copy-dependencies goal of the plugin as part of the initialize phase of the build using the specified configuration-->
					<execution>
						<id>collect libs for EDI</id>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<phase>initialize</phase>
						<configuration>
								<outputDirectory>
										${project.build.directory}/lib
								</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	
</project>
