<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>
	<groupId>nl.knowledgeplaza</groupId>
	<artifactId>Docstore</artifactId>
	<packaging>war</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>KnowledgePlaza Docstore</name>

	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpUtil</artifactId>					<version>1.11</version>	</dependency>
		<dependency>	<groupId>nl.knowledgeplaza</groupId> 			<artifactId>KpServletsAndFilters</artifactId>	<version>1.10</version>	</dependency>
		<dependency>	<groupId>commons-fileupload</groupId> 			<artifactId>commons-fileupload</artifactId>		<version>1.2.1</version>	</dependency>
		<dependency>	<groupId>commons-io</groupId> 					<artifactId>commons-io</artifactId>				<version>1.4</version>	</dependency>
		<dependency>	<groupId>javax.servlet</groupId>				<artifactId>servlet-api</artifactId>			<version>2.5</version>		<scope>provided</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>	
			<!-- compiler settings -->
			<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<configuration>
							<source>1.5</source>
							<target>1.5</target>
					</configuration>
			</plugin>

			<!-- war settings -->
			<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
					<configuration>
							<warSourceDirectory>WebContent</warSourceDirectory>
					</configuration>
			</plugin>

			<!-- copy all dependency jars to a directory (for eclipse without m2eclipse)	-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<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>

	<!-- configure how the artifacts are released -->
	<distributionManagement>
		<repository>
			<id>kp</id>
			<url>http://www.softworks.nl:8081/nexus/content/repositories/releases/</url>
			<uniqueVersion>false</uniqueVersion>
		</repository>
		<snapshotRepository>
			<id>kp</id>
			<url>http://www.softworks.nl:8081/nexus/content/repositories/snapshots/</url>
			<uniqueVersion>false</uniqueVersion>
		</snapshotRepository>
	</distributionManagement>	
	
</project>
