<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>root</artifactId>
		<groupId>org.richfaces</groupId>
		<version>3.3.0.BETA1</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces</groupId>
	<artifactId>docs</artifactId>
	<version>3.3.0.BETA1</version>
	<name>Project documentation</name>
	<packaging>pom</packaging>
	<!-- setup repositories, to build documentation separate from Java projects -->
	<repositories>
		<repository>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
				<updatePolicy>never</updatePolicy>
			</snapshots>
			<id>repository.jboss.com</id>
			<name>Jboss Repository for Maven</name>
			<url>http://repository.jboss.com/maven2/</url>
			<layout>default</layout>
		</repository>
    <repository>
      <id>eclipse</id>
      <url>http://repo1.maven.org/eclipse/</url>
    </repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
				<updatePolicy>never</updatePolicy>
			</snapshots>
			<id>repository.jboss.com</id>
			<name>Jboss Repository for Maven</name>
			<url>http://repository.jboss.com/maven2/</url>
			<layout>default</layout>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
		<dependency>
		    <groupId>com.uwyn</groupId>
		    <artifactId>jhighlight</artifactId>
		    <version>1.0</version>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>docs</id>
			<modules>
				<module>highlight</module>
				<module>common-resources</module>
				<module>userguide</module>
				<module>cdkguide</module>
				<module>faq</module>			
				<module>migrationguide</module>
			</modules>
		</profile>
		<profile>
			<id>release_docs</id>
			<properties>
				<xsl_html_single>classpath:/common-resources/xslt/xhtml-single-release.xsl</xsl_html_single>
				<xsl_html>classpath:/common-resources/xslt/xhtml-release.xsl</xsl_html>
			</properties>
		</profile>	
		<profile>
			<id>diffmk</id>
			<properties>
				<xsl_html_single>classpath:/common-resources/xslt/xhtml-single-diffmk.xsl</xsl_html_single>
				<xsl_html>classpath:/common-resources/xslt/xhtml-diffmk.xsl</xsl_html>
			</properties>
		</profile>
	</profiles>

		<build>
			<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>2.0.2</version>
					<configuration>
						<source>1.5</source>
						<target>1.5</target>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<properties>
		<xsl_html_single>classpath:/common-resources/xslt/xhtml-single.xsl</xsl_html_single>
		<xsl_html>classpath:/common-resources/xslt/xhtml.xsl</xsl_html>
	</properties>
</project>