<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.buildersenperformers</groupId>
	<artifactId>xamtemplate</artifactId>
	<packaging>chy</packaging>
	<version>1.2-SNAPSHOT</version>
	<name>xamtemplate</name>

	<!-- properties -->
	<properties>
		<cheyenne-version>1.12.2-SNAPSHOT</cheyenne-version>
	</properties>
	
	<!-- configure dependencies -->
	<dependencies>
		<dependency>
		  <groupId>commons-io</groupId>
		  <artifactId>commons-io</artifactId>
		  <version>1.4</version>
		</dependency>
		<dependency>
		  <groupId>org.dojotoolkit</groupId>
		  <artifactId>dojo</artifactId>
		  <version>1.10.4</version>
		  <type>zip</type>
		</dependency>
		<dependency>
			<groupId>org.quartz-scheduler</groupId>
			<artifactId>quartz</artifactId>
			<version>2.2.2</version>
		</dependency>
		<dependency>
			<groupId>org.quartz-scheduler</groupId>
			<artifactId>quartz-jobs</artifactId>
			<version>2.2.2</version>
		</dependency>
		
		<dependency>
		  <groupId>nl.innovationinvestments</groupId>
		  <artifactId>CheyenneWebProject</artifactId>
		  <version>1.2.2-SNAPSHOT</version>
		  <type>pom</type>
		</dependency>
		<dependency>
		  <groupId>nl.knowledgeplaza</groupId>
		  <artifactId>KpDcTiming</artifactId>
		  <version>1.1-SNAPSHOT</version>
		</dependency>
		<dependency>
		  <groupId>nl.knowledgeplaza</groupId>
		  <artifactId>KpPasswordReset</artifactId>
		  <version>1.1-SNAPSHOT</version>
		</dependency>
		<dependency>
		  <groupId>nl.knowledgeplaza</groupId>
		  <artifactId>KpServletsAndFilters</artifactId>
		  <version>1.15-SNAPSHOT</version>
		</dependency>	
		<dependency>
		  <groupId>nl.knowledgeplaza</groupId>
		  <artifactId>DocstoreUtil</artifactId>
		  <version>1.1-SNAPSHOT</version>
		</dependency>	
		<dependency>
		  <groupId>nl.buildersenperformers.cheyenne</groupId>
		  <artifactId>chyDav</artifactId>
		  <version>1.1-SNAPSHOT</version>
		</dependency>		
		<dependency>
		  <groupId>nl.ppmoost.ventureplan</groupId>
		  <artifactId>VentureplanSecurityFilter</artifactId>
		  <version>1.0-SNAPSHOT</version>
		</dependency>	
		<dependency>
		  <groupId>commons-beanutils</groupId>
		  <artifactId>commons-beanutils</artifactId>
		  <version>1.8.2</version>
		</dependency>	
		
<!--		<dependency>
		  <groupId>nl.knowledgeplaza</groupId>
		  <artifactId>XAM</artifactId>
		  <version>1.4.1-SNAPSHOT</version>
		  <type>war</type>
		</dependency>
		<dependency>
		  <groupId>nl.buildersenperformers.xam</groupId>
		  <artifactId>GenTaskServlet</artifactId>
		  <version>1.0-SNAPSHOT</version>
		</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>

			<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}/dojo/ 
			          </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>
				</configuration>
			</plugin>
			<!-- make template version -->
			<plugin>
			  <groupId>org.apache.maven.plugins</groupId>
			  <artifactId>maven-assembly-plugin</artifactId>
			  <configuration>
			    <descriptor>chyTemplate.xml</descriptor>
			  </configuration>
			  <executions>
			    <execution>
			      <phase>package</phase>
			      <goals>
			        <goal>single</goal>
			      </goals>
			    </execution>
			  </executions>
			</plugin>		
		</plugins>
	</build>
</project>