<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>IICompanyPom</artifactId>
		<version>1-SNAPSHOT</version>
	</parent>
	<groupId>nl.knowledgeplaza</groupId>
	<artifactId>kpwindows</artifactId>
	<packaging>chy</packaging>
	<version>1.3-SNAPSHOT</version>
	<name>KnowledgePlaza KPWindows</name>

	<!-- properties -->
	<properties>
		<cheyenne-version>1.11-SNAPSHOT</cheyenne-version>
	</properties>
	
	<!-- configure dependencies -->
	<dependencies>

		<dependency> <groupId>nl.innovationinvestments</groupId> <artifactId>CheyenneWebProject</artifactId> <version>1.1-SNAPSHOT</version> <type>pom</type> </dependency>
		<dependency> <groupId>nl.innovationinvestments</groupId> <artifactId>CheyenneTemplate</artifactId> <version>2.1-SNAPSHOT</version> <type>zip</type> </dependency> 
		<dependency>
		  <groupId>org.dojotoolkit</groupId>
		  <artifactId>dojo</artifactId>
		  <version>1.7.2</version>
		  <type>zip</type>
		</dependency>
		
	</dependencies>
	
	<!-- configure how the project is build -->
	<build>
		<!-- <xslt in="resource/language_project.xml" out="resource/language.xml" style="resource/language.xsl" /> -->

		<plugins>	
			
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>xml-maven-plugin</artifactId>
				<version>1.0-beta-3</version>
				<executions>
				  <execution>
				    <goals>
				      <goal>transform</goal>
				    </goals>
				    <phase>initialize</phase>
				  </execution>
				</executions>
				
				<configuration>
				  <transformationSets>
				    <transformationSet>
				      <dir>resource</dir>
				      <includes><include>language_project.xml</include></includes>
				      <stylesheet>resource/language.xsl</stylesheet>
				      <outputDir>resource</outputDir>
				      <fileMappers>
							<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
								<targetName>language.xml</targetName>
							</fileMapper>
                      </fileMappers>
				    </transformationSet>
				  </transformationSets>
				</configuration>
			</plugin>
			
			<!-- Unpack dojo -->
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-dependency-plugin</artifactId>
			    <version>2.2</version>
			    <executions>
			      <execution>
			        <id>unpack-dojo</id>
			        <phase>prepare-package</phase>
			        <goals>
			          <goal>unpack-dependencies</goal>
			        </goals>
			        <configuration>
			          <includeGroupIds>org.dojotoolkit</includeGroupIds>
			          <includeArtifactIds>dojo</includeArtifactIds>
			          <outputDirectory>
			             ${project.build.directory}/${project.artifactId}-${project.version}/script/ 
			          </outputDirectory>
			        </configuration>
			      </execution>
			    </executions>
			</plugin>
						

			
			<!-- setup the compiler -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<showDeprecation>false</showDeprecation>
					<fork>false</fork>
					 <compilerArgument></compilerArgument>
				</configuration>
			</plugin>
			
			<!-- cheyenne -->
			<plugin>
				<groupId>nl.innovationinvestments</groupId>
				<artifactId>CheyenneMavenPlugin</artifactId>
				<version>${cheyenne-version}</version>
				<extensions>true</extensions>
				<configuration>
					<languageDef>resource/language.xml</languageDef>
=					<isOverlay>true</isOverlay>
				</configuration>
			</plugin>

		
		</plugins>
	</build>
</project>
