<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>KpUtil</artifactId>
	<packaging>jar</packaging>
	<version>1.12-SNAPSHOT</version>
	<name>Knowledgeplaza Java Utilities</name>

	<!-- where can maven find other artifacts -->
	<repositories>
		<repository>
			<id>kp</id>
			<url>http://www.softworks.nl:8081/nexus/content/groups/public</url>
			<!-- this server must be defined in ~/.m2/setting.xml with a username and password	 http://maven.apache.org/settings.html#Servers -->
		</repository>
	</repositories>
	
	<!-- where can maven find plugins -->
	<pluginRepositories>
		<pluginRepository>
			<id>kp</id>
			<url>http://www.softworks.nl:8081/nexus/content/groups/public</url>
			<!-- this server must be defined in ~/.m2/setting.xml with a username and password	 http://maven.apache.org/settings.html#Servers -->
		</pluginRepository>
	</pluginRepositories>
	
	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>log4j</groupId> 						<artifactId>log4j</artifactId>					<version>1.2.15</version>	</dependency>
		<dependency>	<groupId>org.slf4j</groupId> 					<artifactId>slf4j-api</artifactId>				<version>1.5.8</version>	</dependency>
		<dependency>	<groupId>org.slf4j</groupId> 					<artifactId>slf4j-log4j12</artifactId>			<version>1.5.8</version>	<scope>test</scope></dependency>
		<dependency>	<groupId>net.sourceforge.collections</groupId> 	<artifactId>collections-generic</artifactId>	<version>4.01</version>		</dependency>
		<dependency>	<groupId>org.apache.commons</groupId> 			<artifactId>codecs</artifactId>					<version>1.3</version>		<scope>provided</scope></dependency> 
		<dependency>	<groupId>org.apache.commons</groupId> 			<artifactId>pool</artifactId>					<version>1.3</version>		<scope>provided</scope></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>	<scope>provided</scope></dependency> 
		<dependency>	<groupId>javax.persistence</groupId> 			<artifactId>persistence-api</artifactId>		<version>1.0</version>		<scope>provided</scope></dependency> 
		<dependency>	<groupId>org.eclipse.persistence</groupId> 		<artifactId>javax.persistence</artifactId>		<version>2.0.0</version>	<scope>provided</scope></dependency> 
		<dependency>	<groupId>org.eclipse.persistence</groupId> 		<artifactId>eclipselink</artifactId>			<version>2.0.0</version>	<scope>provided</scope></dependency> 
		<dependency>	<groupId>javax.activation</groupId> 			<artifactId>activation</artifactId>				<version>1.1</version>		<scope>provided</scope></dependency> 
		<dependency>	<groupId>javax.mail</groupId> 					<artifactId>mail</artifactId>					<version>1.4</version>		<scope>provided</scope></dependency> 
		<dependency>	<groupId>javax.servlet</groupId> 				<artifactId>servlet-api</artifactId>			<version>2.3</version>		<scope>provided</scope>	</dependency>
		<dependency>	<groupId>xmlunit</groupId> 						<artifactId>xmlunit</artifactId>				<version>1.3</version>		<scope>provided</scope>	</dependency>
		<dependency>	<groupId>commons-vfs</groupId>					<artifactId>commons-vfs</artifactId>			<version>1.0</version>		<scope>provided</scope></dependency>
		<dependency>	<groupId>org.easytesting</groupId> 				<artifactId>fest-assert</artifactId>			<version>1.2</version>		<scope>test</scope>	</dependency>
		<dependency>	<groupId>junit</groupId> 						<artifactId>junit</artifactId>					<version>4.5</version>		<scope>test</scope>	</dependency>
		<dependency>	<groupId>hsqldb</groupId> 						<artifactId>hsqldb</artifactId>					<version>1.8.0.7</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>crimson</groupId> 						<artifactId>crimson</artifactId>				<version>1.1.3</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>org.jconfig</groupId> 					<artifactId>jconfig</artifactId>				<version>2.9</version>		<scope>test</scope>	</dependency>
		<dependency>	<groupId>net.sourceforge.jexcelapi</groupId> 	<artifactId>jxl</artifactId>					<version>2.6.10</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>org.mockito</groupId> 					<artifactId>mockito-all</artifactId>			<version>1.8.2</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>mysql</groupId> 						<artifactId>mysql-connector-java</artifactId>	<version>5.1.10</version>	<scope>test</scope>	</dependency>
		<dependency>	<groupId>com.nilostep</groupId> 				<artifactId>xlsql</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>srcTest</testSourceDirectory>
		<resources>
			<resource>
				<directory>src</directory>
				<excludes>
				  <exclude> **/*.java </exclude>
				  <exclude> **/CVS </exclude>
				</excludes>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>srcTest</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.5</source>
					<target>1.5</target>
					<showDeprecation>false</showDeprecation>
					<fork>false</fork>
					 <compilerArgument></compilerArgument>
				</configuration>
			</plugin>
			<!-- ignore the fact that test failed; normally this should not be done, but this project has some ancient unittests that were not setup right -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<testFailureIgnore>true</testFailureIgnore>
				</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>
			<!-- TOTEST: http://weblogs.java.net/blog/2009/08/10/getting-most-out-maven-settingsxml-file -->
		</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>
