<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>nl.knowledgeplaza</groupId>
		<artifactId>KPCompanyPom</artifactId>
		<version>1-SNAPSHOT</version>
	</parent>
	<artifactId>ResolveArtifactPlugin</artifactId>
	<version>1.2-SNAPSHOT</version>
	<packaging>maven-plugin</packaging>
	<name>Knowledgeplaza resolve artifact Plugin</name>
	
	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>org.apache.maven</groupId>				<artifactId>maven-plugin-api</artifactId>			<version>2.0</version>					</dependency>
		<dependency>	<groupId>org.apache.maven.plugins</groupId>		<artifactId>maven-dependency-plugin</artifactId>	<version>2.0</version>					</dependency>
		<dependency>	<groupId>com.pyx4j</groupId>					<artifactId>maven-plugin-log4j</artifactId>			<version>1.0.1</version>				</dependency> <!-- redirect log4j output to maven -->
	</dependencies>

	<!-- configure how the project is build -->
	<build>
        <resources>
          <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
          </resource>
        </resources>
		<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>
			<!-- 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>
</project>
