<?xml version="1.0" encoding="UTF-8"?>

<project>
	<pomVersion>3</pomVersion>
	<extend>../../master/project.xml</extend>
	<name>Sakai JSF Widgets - Example</name>
	<groupId>sakaiproject</groupId>
	<id>sakai-jsf-example</id>
	<currentVersion>${sakai.version}</currentVersion>
	<organization>
		<name>University of Michigan</name>
		<url>http://sakaiproject.org/</url>
	</organization>
	<inceptionYear>2003</inceptionYear>
	<description>
		This project contains examples of Sakai JSF in action.
	</description>
	<properties>
		<deploy.type>war</deploy.type>
	</properties>

	<dependencies>

		<!-- Sakai plugin -->

		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai</artifactId>
			<version>${sakai.plugin.version}</version>
			<type>plugin</type>
		</dependency>

		<dependency>
			<groupId>servletapi</groupId>
			<artifactId>servletapi</artifactId>
			<version>2.4</version>
		</dependency>

		<!-- this is required for any Sakai JSF tool -->
		<!--
		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-jsf-tool</artifactId>
			<version>${sakai.version}</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
		-->

	<!-- these (jsf-app and util-web) are options to get full Sakai integration -->
		<!--
		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-jsf-app</artifactId>
			<version>${sakai.version}</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-util-web</artifactId>
			<version>${sakai.version}</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
		-->

		<!-- MyFaces JSF dependencies -->
		<dependency>
			<groupId>myfaces</groupId>
			<artifactId>myfaces-all</artifactId>
			<version>1.1.1</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<!-- Sun JSF dependencies -->
		<!--
		<dependency>
			<groupId>jsf</groupId>
			<artifactId>jsf-api</artifactId>
			<version>1.1.01</version>
			<url>http://java.sun.com/j2ee/javaserverfaces/</url>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>


		<dependency>
			<groupId>jsf</groupId>
			<artifactId>jsf-impl</artifactId>
			<version>1.1.01</version>
			<url>http://java.sun.com/j2ee/javaserverfaces/</url>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
		-->

		<!-- Sakai tag library -->
		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-jsf-widgets</artifactId>
			<version>${sakai.version}</version>
			<url>http://sakaiproject.org/</url>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<!-- Adaptor to use tag library with Sun's RI -->
		<!--
		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-jsf-widget-sun</artifactId>
			<version>${sakai.version}</version>
			<url>http://sakaiproject.org/</url>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
		-->

		<!-- Adaptor to use tag library with MyFaces -->
		<dependency>
			<groupId>sakaiproject</groupId>
			<artifactId>sakai-jsf-widgets-myfaces</artifactId>
			<version>${sakai.version}</version>
			<url>http://sakaiproject.org/</url>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<dependency>
			<groupId>commons-digester</groupId>
			<artifactId>commons-digester</artifactId>
			<version>1.6</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.3</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<dependency>
			<groupId>jstl</groupId>
			<artifactId>jstl</artifactId>
			<version>1.1.2</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
			<version>1.7.0</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

		<!-- Provided by the servlet container by default -->
		<dependency>
			<groupId>commons-el</groupId>
			<artifactId>commons-el</artifactId>
			<version>1.0</version>
		</dependency>

		<!--  The below JSF-related depencencies should only be bundled in the webapp if it
	          is being used OUTSIDE of Sakai.  When deployed inside of Sakai,
	          or using the Sakai maven plugin, these jars are deployed by Sakai automatically.
		-->

	    <!-- Apache Commons file upload used by inputFileUpload tag and associated filter -->
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.0</version>
		</dependency>

		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
			<version>3.1</version>
		</dependency>

		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.0.4</version>
		</dependency>

	<!--  New for myfaces 1.1.1 update -->
		<dependency>
			<groupId>commons-validator</groupId>
			<artifactId>commons-validator</artifactId>
			<version>1.3.0</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>
	
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>${sakai.commons.lang.version}</version>
		</dependency>

		<dependency>
			<groupId>oro</groupId>
			<artifactId>oro</artifactId>
			<version>2.0.8</version>
			<properties>
				<war.bundle>true</war.bundle>
			</properties>
		</dependency>

	</dependencies>

	<build>

		<sourceDirectory>src/java</sourceDirectory>

		<resources>

			<resource>
				<directory>${basedir}/src/bundle</directory>
				<includes>
					<include>**/*.properties</include>
				</includes>
			</resource>

			<resource>
				<directory>${basedir}/webapp</directory>
				<includes>
					<include>**/*</include>
				</includes>
			</resource>

		</resources>

	</build>

</project>
