<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>
		<artifactId>NovelFacesMain</artifactId>
		<groupId>be.novelfaces</groupId>
		<version>0.0.3</version>
	</parent>
	<groupId>be.novelfaces</groupId>
	<artifactId>NovelFacesComponents</artifactId>
	<version>0.0.3</version>
	<packaging>jar</packaging>
	<name>${appName} Components Library module</name>

	<dependencies>
		<dependency>
			<groupId>javax.faces</groupId>
			<artifactId>jsf-api</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.faces</groupId>
			<artifactId>jsf-impl</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.jstestdriver</groupId>
			<artifactId>maven-jstestdriver-plugin</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>NovelFacesComponents</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<configuration>
					<skip>false</skip>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skipTests>${skipUTs}</skipTests>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>compress</id>
			<pluginRepositories>
				<pluginRepository>
					<name>oss.sonatype.org</name>
					<id>oss.sonatype.org</id>
					<url>http://oss.sonatype.org/content/groups/public</url>
				</pluginRepository>
			</pluginRepositories>
			<build>
				<plugins>
					<plugin>
						<groupId>net.alchim31.maven</groupId>
						<artifactId>yuicompressor-maven-plugin</artifactId>
						<version>1.1</version>
						<executions>
							<execution>
								<goals>
									<goal>compress</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<outputDirectory>src/main/resources</outputDirectory>
							<encoding>UTF-8</encoding>
							<excludes>
								<exclude>**/*min.js</exclude>
							</excludes>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-source</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>

		</profile>
		<profile>
			<id>jstests</id>
			<build>
				<plugins>
					<plugin>
						<groupId>com.google.jstestdriver</groupId>
						<artifactId>maven-jstestdriver-plugin</artifactId>
						<version>1.2.2-SNAPSHOT</version>
						<executions>
							<execution>
								<id>run-tests-firefox</id>
								<phase>test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<browser>${firefox.path}</browser>
									<port>4224</port>
									<basePath>src</basePath>
									<testOutput>target/testReports</testOutput>
									<config>src/test/resources/jsTestDriver.conf</config>
								</configuration>
							</execution>
							<execution>
								<id>run-tests-ie</id>
								<phase>test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<browser>${ie.path}</browser>
									<port>4224</port>
									<basePath>src</basePath>
									<testOutput>target/testReports</testOutput>
									<config>src/test/resources/jsTestDriver.conf</config>
								</configuration>
							</execution>
							<execution>
								<id>run-tests-opera</id>
								<phase>test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<browser>${opera.path}</browser>
									<port>4224</port>
									<basePath>src</basePath>
									<testOutput>target/testReports</testOutput>
									<config>src/test/resources/jsTestDriver.conf</config>
								</configuration>
							</execution>
							<execution>
								<id>run-tests-safari</id>
								<phase>test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<browser>${safari.path}</browser>
									<port>4224</port>
									<basePath>src</basePath>
									<testOutput>target/testReports</testOutput>
									<config>src/test/resources/jsTestDriver.conf</config>
								</configuration>
							</execution>
							<execution>
								<id>run-tests-chrome</id>
								<phase>test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<browser>${chrome.path}</browser>
									<port>4224</port>
									<basePath>src</basePath>
									<testOutput>target/testReports</testOutput>
									<config>src/test/resources/jsTestDriver.conf</config>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<activation>
				<os>
					<name>Windows 7</name>
					<family>Windows</family>
				</os>
			</activation>
			<properties>
				<firefox.path>"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"</firefox.path>
				<ie.path>"C:\Program Files (x86)\Internet Explorer\iexplore.exe"</ie.path>
				<chrome.path>"C:\Users\bkgen\AppData\Local\Google\Chrome\Application\chrome.exe"</chrome.path>
				<safari.path>"C:\Program Files (x86)\Safari\Safari.exe"</safari.path>
				<opera.path>"C:\Program Files (x86)\Opera\opera.exe"</opera.path>
				<browsers.path>${firefox.path},${ie.path},${chrome.path},${safari.path},${opera.path}</browsers.path>
			</properties>
		</profile>
	</profiles>

</project>