<?xml version="1.0" encoding="UTF-8"?>

<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>
	<groupId>org.richfaces</groupId>
	<artifactId>examples</artifactId>
  <version>4.0.0.ALPHA1</version>
	<packaging>pom</packaging>
  <name>richfaces components examples</name>

	<distributionManagement>
		<downloadUrl>
		http://labs.jboss.com/portal/jbossrichfaces/downloads
		</downloadUrl>
		<repository>
			<id>repository.jboss.org</id>
			<uniqueVersion>false</uniqueVersion>
			<url>${releaseRepository}</url>
		</repository>
		<snapshotRepository>
			<id>snapshots.jboss.org</id>
			<uniqueVersion>true</uniqueVersion>
			<url>${snapshotRepository}</url>
		</snapshotRepository>
		<!--site>
		<url>file:target/site2</url>
		</site-->
	</distributionManagement>  
  <dependencies>
    <dependency>
      <groupId>org.richfaces.framework</groupId>
      <artifactId>richfaces-impl</artifactId>
      <version>4.0.0.ALPHA1</version>
    </dependency>
    
    <!-- simple logger binding: only messages of level INFO and higher are printed--> 
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version >1.5.8</version>
    </dependency>
    
   <!-- TODO: uncomment when assembly will be ready -->
    <!--dependency> 
      <groupId>org.richfaces.ui</groupId>
      <artifactId>richfaces-ui</artifactId>
      <version>${ui.version}</version>
    </dependency-->
    <dependency>
      <groupId>com.sun.faces</groupId>
      <artifactId>jsf-api</artifactId>
      <version>2.0.0-SNAPSHOT</version>
      <!--scope>provided</scope-->
    </dependency>
    <dependency>
      <groupId>com.sun.faces</groupId>
      <artifactId>jsf-impl</artifactId>
      <version>2.0.0-SNAPSHOT</version>
      <!--scope>provided</scope-->
    </dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
      <version>2.1</version>
      <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.el</groupId>
			<artifactId>el-api</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jstl</groupId>
			<artifactId>jstl</artifactId>
      <version>1.2</version>
      <scope>provided</scope>
		</dependency>
	</dependencies>

	<modules>
		<module>richfaces-demo</module>
	</modules>

	<profiles>
		<profile>
			<id>photoalbum</id>
			<modules>
				<module>photoalbum</module>
			</modules>
		</profile>
		<profile>
			<id>components</id>
			<modules>
				<module>components</module>
			</modules>
		</profile>
	    <profile>
            <id>jee5</id>
			<dependencies>
			    <dependency>
					<groupId>com.sun.faces</groupId>
					<artifactId>jsf-api</artifactId>
					<version>2.0.0-SNAPSHOT</version>
					<scope>provided</scope>
			    </dependency>
			    <dependency>
					<groupId>com.sun.faces</groupId>
					<artifactId>jsf-impl</artifactId>
					<version>2.0.0-SNAPSHOT</version>
					<scope>provided</scope>
			    </dependency>
			    <dependency>
					<groupId>javax.transaction</groupId>
					<artifactId>jta</artifactId>
					<version>1.1</version>
					<scope>provided</scope>
			    </dependency>
			</dependencies>
        </profile>
    </profiles>

	<build>
		<plugins>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<version>6.1.18</version>
				<configuration>
					<scanIntervalSeconds>10</scanIntervalSeconds>
					<connectors>
						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
							<port>${jetty.port}</port>
							<maxIdleTime>60000</maxIdleTime>
						</connector>
					</connectors>
				</configuration>				
			</plugin>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<wtpversion>2.0</wtpversion>
					<downloadSources>true</downloadSources>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<properties>
		<jetty.port>8080</jetty.port>
	</properties>
</project>