<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>knowledgeplaza-appjar-plugin</artifactId>
	<packaging>maven-plugin</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>appjar-maven-plugin Maven Mojo</name>
	<url>http://maven.apache.org</url>
	
	<!-- configure dependencies -->
	<dependencies>
		<dependency>	<groupId>org.apache.commons</groupId>			<artifactId>commons-io </artifactId>				<version>1.3.2</version>		</dependency>
		<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>org.apache.maven</groupId>				<artifactId>maven-archiver</artifactId>				<version>2.0</version>				</dependency>
		<dependency>	<groupId>nl.knowledgeplaza</groupId>			<artifactId>appjar</artifactId>						<version>1.0-SNAPSHOT</version>		</dependency>
	</dependencies>

	<!-- configure how the project is build -->
	<build>
		<resources>
			<resource>
				<directory>target/lib</directory>
				<includes>
				  <include> appjar-*.jar </include>
				</includes>
			</resource>
		</resources>

		<plugins>	
			<!-- setup the compiler -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<showDeprecation>false</showDeprecation>
					<fork>false</fork>
					 <compilerArgument></compilerArgument>
				</configuration>
			</plugin>
			<!-- copy all dependency jars to a directory so they can be included in the plugin -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>collect libs for including</id>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<phase>initialize</phase>
						<configuration>
								<outputDirectory>
										${project.build.directory}/lib
								</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>			
		</plugins>
				
	</build>
	
</project>
