<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>ui</artifactId>
		<groupId>org.richfaces</groupId>
		<version>3.3.0.BETA1</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces.ui</groupId>
	<artifactId>richfaces-ui</artifactId>
	<name>RichFaces JSF components library</name>
	<packaging>jar</packaging>

	<properties>
		<tlibVersion>${project.artifact.selectedVersion.majorVersion}.${project.artifact.selectedVersion.minorVersion}.${project.artifact.selectedVersion.incrementalVersion}</tlibVersion>
	</properties>
	
	<build>
		<plugins>
			<plugin>
				<groupId>org.richfaces.cdk</groupId>
				<artifactId>maven-cdk-plugin</artifactId>
				<version>3.3.0.BETA1</version>
				<configuration>
					<library>
						<prefix>org.richfaces</prefix>
						<description>RichFaces components</description>
						<taglibs>
							<taglib>
							    <tlibVersion>${tlibVersion}</tlibVersion>
								<shortName>richfaces</shortName>
								<taglib>richfaces</taglib>
								<uri>
									http://richfaces.ajax4jsf.org/rich
								</uri>
								<displayName>
									RichFaces ( Legacy URL )
								</displayName>
								<excludeModules>core</excludeModules>
							</taglib>
							<taglib>
							    <tlibVersion>${tlibVersion}</tlibVersion>
								<shortName>rich</shortName>
								<taglib>rich</taglib>
								<uri>http://richfaces.org/rich</uri>
								<displayName>RichFaces</displayName>
								<excludeModules>core</excludeModules>
							</taglib>
							<taglib>
							    <tlibVersion>${tlibVersion}</tlibVersion>
								<shortName>a4j</shortName>
								<taglib>ajax4jsf</taglib>
								<uri>http://richfaces.org/a4j</uri>
								<displayName>Ajax4Jsf</displayName>
								<includeModules>core</includeModules>
							</taglib>
							<taglib>
							    <tlibVersion>${tlibVersion}</tlibVersion>
								<shortName>ajax</shortName>
								<taglib>a4j</taglib>
								<uri>
									https://ajax4jsf.dev.java.net/ajax
								</uri>
								<displayName>
									Ajax4jsf ( Legacy URL )
								</displayName>
								<includeModules>core</includeModules>
							</taglib>
						</taglibs>
					</library>
					<!--
						<templateXpath>/*[local-name()='template']/*</templateXpath>
					-->
					<excludeXcss>**/basic.xcss, **/basic_classes.xcss, **/basic_both.xcss, **/extended.xcss, **/extended_classes.xcss, **/extended_both.xcss, **/skin*.xcss</excludeXcss>
					<commonStyle>org/richfaces/skin.xcss</commonStyle>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>assembly</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- append extracted sources , for pack with library -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>add-source</id>
						<phase>process-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>
									${project.build.directory}/src
								</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<outputDirectory>
						${project.build.directory}/dist
					</outputDirectory>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.richfaces.cdk</groupId>
				<artifactId>maven-javascript-plugin</artifactId>
				<version>${project.version}</version>
				<executions>
					<execution>
						<goals>
							<goal>compress</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<nosuffix>false</nosuffix>
					<outputDirectory>
						${project.build.directory}/compressed/
					</outputDirectory>
					<aggregations>
						<aggregation>
							<!-- remove files after aggregation (default: false)
								<removeIncluded>true</removeIncluded>
							-->
							<!-- insert new line after each concatenation (default: false) -->
							<insertNewLine>true</insertNewLine>
							<output>
								${project.build.outputDirectory}/org/richfaces/ui.pack.js
							</output>
							<!-- files to include, path relative to output's directory or absolute path-->
							<includes>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/drag-indicator-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/simple-draggable-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/simple-dropzone-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/tree-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/tree-selection-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/tree-item-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/tree-item-dnd-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/modalPanel-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/modalPanelBorders-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/ShuttleUtils-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/SelectItem-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/LayoutManager-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/Control-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/ListBase-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/OrderingList-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/ListShuttle-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/PickListSI-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/PickList-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/comboboxUtils-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/combolist-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/inplaceinput-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/inplaceselectlist-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/inplaceselect-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/common-scrollable-data-table-min.js
								</include>

								<include>**/*-min.js</include>
							</includes>
							<!-- files to exclude, path relative to output's directory -->
							<excludes>
								<exclude>**/*.pack.js</exclude>
								<!--
									<exclude>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/jquery.jcarousel-min.js
									</exclude>
								-->

								<!-- rich:editor configuration -->
								<exclude>**/tiny_mce/**</exclude>
								<exclude>**/editor-min.js</exclude>
								
								<!-- include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/tiny_mce/tiny_mce_src-min.js
								</include>
								<include>
									${project.build.directory}/compressed/org/richfaces/renderkit/html/scripts/editor-min.js
								</include -->
								<!-- -->
								
								<exclude>**/scriptaculo*</exclude>
								<exclude>**/scriptaculo*/**</exclude>
							</excludes>
						</aggregation>
					</aggregations>
					<!--
						<warSourceDirectory>${project.build.directory}/modules</warSourceDirectory>
						<webappDirectory>${project.build.directory}/compressed</webappDirectory>
					-->
					<includes>
						<include>**/*.js</include>
					</includes>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<profiles>
		<profile>
			<id>release</id>

			<build>
				<plugins>
					<plugin>
						<groupId>net.sourceforge.maven-taglib</groupId>
						<artifactId>maven-taglib-plugin</artifactId>
						<configuration>
							<taglib.src.dir>
								${project.build.outputDirectory}/META-INF
							</taglib.src.dir>
							<tldDocDir>
								${project.build.directory}/tlddoc
							</tldDocDir>
						</configuration>

						<executions>
							<execution>
								<id>attach-javadoc</id>
								<phase>process-resources</phase>
								<goals>
									<goal>taglibdocjar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.2</version>
						<executions>
							<execution>
								<id>attach-javadoc</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<javadocVersion>1.5</javadocVersion>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-dependency-plugin</artifactId>
						<executions>
							<execution>
								<id>unpack</id>
								<phase>generate-resources</phase>
								<goals>
									<goal>unpack</goal>
								</goals>
								<configuration>
									<artifactItems>
										<artifactItem>
											<groupId>
												org.richfaces.docs.userguide
											</groupId>
											<artifactId>en</artifactId>
											<version>
												${project.version}
											</version>
											<type>jar</type>
											<!--classifier>pdf</classifier-->
											<outputDirectory>
												${project.build.directory}/docs/userguide/en
											</outputDirectory>
										</artifactItem>
										<artifactItem>
											<groupId>
												org.richfaces.docs.faq
											</groupId>
											<artifactId>en</artifactId>
											<version>
												${project.version}
											</version>
											<type>jar</type>
											<!--classifier>pdf</classifier-->
											<outputDirectory>
												${project.build.directory}/docs/faq/en
											</outputDirectory>
										</artifactItem>
									</artifactItems>
									<outputDirectory>
										${project.build.directory}/docs
									</outputDirectory>
									<overWriteReleases>
										false
									</overWriteReleases>
									<overWriteSnapshots>
										true
									</overWriteSnapshots>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<configuration>
							<outputDirectory>
								${project.build.directory}/dist
							</outputDirectory>
							<descriptors>
								<descriptor>
									${basedir}/src/main/assembly/richfaces.xml
								</descriptor>
								<descriptor>
									${basedir}/src/main/assembly/src.xml
								</descriptor>
							</descriptors>
						</configuration>
						<executions>
							<execution>
								<id>make-assembly</id>
								<phase>package</phase>
								<goals>
									<goal>attached</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<dependencies />
</project>