<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.1.SP3</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces</groupId>
	<artifactId>docs</artifactId>
	<version>3.3.1.SP3</version>
	<name>Project documentation</name>
	<packaging>pom</packaging>
	<!-- setup repositories, to build documentation separate from Java projects -->
	<repositories>
		<repository>
			<id>jboss-public-repository-group</id>
            <name>Jboss Repository for Maven</name>
            <url>https://repository.jboss.org/nexus/content/groups/public/</url>
			<layout>default</layout>
		</repository>

	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>jboss-public-repository-group</id>
            <name>Jboss Repository for Maven</name>
            <url>https://repository.jboss.org/nexus/content/groups/public/</url>
			<layout>default</layout>
		</pluginRepository>
	</pluginRepositories>
	<dependencies>
		<dependency>
		    <groupId>com.uwyn</groupId>
		    <artifactId>jhighlight</artifactId>
		    <version>1.0</version>
		</dependency>
		<dependency>
			<groupId>org.apache.xmlgraphics</groupId>
			<artifactId>fop</artifactId>
			<version>0.95</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>
				<module>photo_album_app_guide</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>