<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</version>
	</parent>
	<artifactId>CheyenneServlet</artifactId>
	<packaging>jar</packaging>
	<name>InnovationInvestments Cheyenne Engine</name>

	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>${project.groupId}</groupId>			<artifactId>CheyenneEngine</artifactId>			<version>${project.version}</version>								</dependency> <!-- same version as pom -->
		<dependency>	<groupId>javax.servlet</groupId>				<artifactId>servlet-api</artifactId>			<version>2.5</version>					<scope>provided</scope>		</dependency>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpServletsAndFilters</artifactId>	<version>1.12</version>												</dependency>
		<dependency>	<groupId>org.apache.axis2</groupId>				<artifactId>axis2-kernel</artifactId>			<version>1.4.1</version>											</dependency>
		<dependency>	<groupId>dom4j</groupId> 						<artifactId>dom4j</artifactId>					<version>1.6.1</version>											</dependency>
		<!-- test -->
		<dependency>	<groupId>org.hsqldb</groupId>					<artifactId>hsqldb</artifactId>					<version>1.8.0.10</version>				<scope>test</scope>			</dependency>
		<dependency>	<groupId>jaxen</groupId>						<artifactId>jaxen</artifactId>					<version>1.1.1</version>				<scope>test</scope>			</dependency>
		<dependency>	<groupId>httpunit</groupId>						<artifactId>httpunit</artifactId>				<version>1.7</version>					<scope>test</scope>			</dependency>
	</dependencies>
	
	<!-- configure how the project is build -->
	<build>

		<!-- setup the source directories -->
		<sourceDirectory>src</sourceDirectory>
		<testSourceDirectory>src-test</testSourceDirectory>
		<resources>
			<resource>
				<directory>src</directory>
				<excludes>
				  <exclude> **/*.java </exclude>
				  <exclude> **/CVS </exclude>
				</excludes>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>src-test</directory>
				<excludes>
				  <exclude> **/*.java </exclude>
				  <exclude> **/CVS </exclude>
				</excludes>
			</testResource>
		</testResources>
	
		<!-- 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>
