<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">
	<parent>
		<artifactId>framework</artifactId>
		<groupId>org.richfaces</groupId>
		<version>3.3.4.Final</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces.framework</groupId>
	<artifactId>richfaces-test</artifactId>
	<version>3.3.4.Final</version>
	<name>Ajax4Jsf test framework</name>
	<url>https://ajax4jsf.dev.java.net</url>
	
	<profiles>
		<profile>
			<id>jsf2_0</id>
			<dependencies>
				<dependency>
					<groupId>org.richfaces.framework</groupId>
					<artifactId>richfaces-impl-jsf2</artifactId>
					<version>${project.version}</version>
					<scope>provided</scope>
				</dependency>
			</dependencies>
			<properties>
				<additionalTestFolder>src/test/java-jsf20</additionalTestFolder>
			</properties>
		</profile>
		<profile>
			<id>jsf1_2</id>
			<dependencies>
				<dependency>
					<groupId>org.richfaces.framework</groupId>
					<artifactId>richfaces-impl</artifactId>
					<version>${project.version}</version>
					<scope>provided</scope>
				</dependency>
			</dependencies>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<additionalTestFolder>src/test/java-jsf12</additionalTestFolder>
			</properties>
		</profile>
	</profiles>
	
	
	<dependencies>
		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-impl</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.shale</groupId>
			<artifactId>shale-test</artifactId>
			<version>1.0.4</version>
			<exclusions>
				<exclusion>
					<groupId>org.apache.myfaces</groupId>
					<artifactId>myfaces-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.myfaces</groupId>
					<artifactId>myfaces-impl</artifactId>
				</exclusion>
				<exclusion>
					<groupId>myfaces</groupId>
					<artifactId>myfaces-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>myfaces</groupId>
					<artifactId>myfaces-impl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>net.sourceforge.htmlunit</groupId>
			<artifactId>htmlunit</artifactId>
			<version>1.14</version>
			<exclusions>
				<exclusion>
					<groupId>xerces</groupId>
					<artifactId>xercesImpl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>xerces</groupId>
			<artifactId>xercesImpl</artifactId>
			<version>2.9.1</version>
		</dependency>
		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymock</artifactId>
			<version>2.2</version>
		</dependency>
		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymockclassextension</artifactId>
			<version>2.2.1</version>
		</dependency>
		<dependency>
			<groupId>rhino</groupId>
			<artifactId>js</artifactId>
			<version>1.6R7</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>**/AjaxStateHolderTest.java</exclude>
					</excludes>
				</configuration>
			</plugin>
			<plugin> 
		        <groupId>org.codehaus.mojo</groupId> 
		        <artifactId>build-helper-maven-plugin</artifactId> 
		        <version>1.4</version> 
		        <executions> 
	                <execution> 
                        <id>add-test-source</id> 
                        <phase>generate-sources</phase> 
                        <goals> 
                        	<goal>add-test-source</goal> 
                        </goals> 
                        <configuration> 
                               <sources> 
                                      <source>${additionalTestFolder}</source> 
                               </sources>
                        </configuration> 
	                </execution> 
		        </executions> 
			</plugin> 
		</plugins>
	</build>
</project>
