<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<parent>
		<groupId>org.richfaces.cdk</groupId>
		<artifactId>maven-plugins</artifactId>
		<version>4.0.0.ALPHA1</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.richfaces.cdk</groupId>
	<artifactId>generator</artifactId>
	<version>4.0.0.ALPHA1</version>
	<name>Java Server Faces component generator</name>
	
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.sun.xsom</groupId>
				<artifactId>xsom</artifactId>
				<version>20081112</version>
			</dependency>
			<dependency>
				<groupId>com.sun.xml.bind</groupId>
				<artifactId>jaxb-xjc</artifactId>
				<version>2.0.3</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	
	<build>
		<plugins>
			<plugin>
			    <groupId>org.codehaus.groovy.maven</groupId>
			    <artifactId>gmaven-plugin</artifactId>
			    <version>1.0-rc-5</version>
			    <executions>
			        <execution>
			            <phase>process-resources</phase>
			            <goals>
			                <goal>execute</goal>
			            </goals>
			            <configuration>
			                <properties>
			                    <sourceSchema>src/main/xsd/xhtml-el.xsd</sourceSchema>
			                    <targetNamespace>http://richfaces.org/xhtml-el</targetNamespace>
			                    <outputFile>attributes.ser</outputFile>
			                </properties>
                            <classpath>
			                    <element>
			                        <groupId>com.sun.xsom</groupId>
			                        <artifactId>xsom</artifactId>
			                    </element>
			                    <element>
									<groupId>com.sun.xml.bind</groupId>
									<artifactId>jaxb-xjc</artifactId>
			                    </element>
			                </classpath>
               				<source>${project.basedir}/src/main/script/SchemaAttributesParserTask.groovy</source>
			            </configuration>
			        </execution>
			    </executions>
			    <dependencies>
		            <dependency>
						<groupId>org.codehaus.groovy.maven.runtime</groupId>
						<artifactId>gmaven-runtime-1.6</artifactId>
		                <version>1.0-rc-5</version>
		            </dependency>
			    </dependencies>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<inherited>true</inherited>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<useManifestOnlyJar>false</useManifestOnlyJar>
					<useSystemClassLoader>true</useSystemClassLoader>
				</configuration>
			</plugin>
			<!--
				plugin> <groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxb2-maven-plugin</artifactId> <executions> <execution>
				<goals> <goal>xjc</goal> </goals> </execution> </executions>
				<configuration> <packageName>org.richfaces.cdk.model</packageName>
				</configuration> </plugin
			-->
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.6</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>freemarker</groupId>
			<artifactId>freemarker</artifactId>
			<version>2.3.9</version>
		</dependency>
		<dependency>
			<groupId>org.richfaces.cdk</groupId>
			<artifactId>annotations</artifactId>
			<version>4.0.0.ALPHA1</version>
		</dependency>
		<!--
			<dependency> <groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId> <version>2.1</version>
			</dependency> <dependency> <groupId>com.sun.xml.bind</groupId>
			<artifactId>jaxb-impl</artifactId> <version>2.1.10</version>
			</dependency>
		-->
		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-api</artifactId>
			<version>2.0.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
			<version>2.1</version>
		</dependency>
		<dependency>
			<groupId>javax.el</groupId>
			<artifactId>el-api</artifactId>
			<version>1.2</version>
		</dependency>
		<dependency>
			<groupId>org.jboss.el</groupId>
			<artifactId>jboss-el</artifactId>
			<version>1.0_02.CR4</version>
		</dependency>
		<dependency>
			<groupId>xerces</groupId>
			<artifactId>xercesImpl</artifactId>
			<version>2.9.1</version>
		</dependency>
		<!--
			<dependency> <groupId>com.google.collections</groupId>
			<artifactId>google-collections</artifactId>
			<version>1.0-rc2</version> </dependency> <dependency>
			<groupId>org.w3c.css</groupId> <artifactId>sac</artifactId>
			<version>1.3</version> </dependency>
		-->
		<dependency>
			<groupId>wutka</groupId>
			<artifactId>dtdparser</artifactId>
			<version>1.21</version>
		</dependency>

		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymock</artifactId>
			<version>2.5.1</version>
		</dependency>
		<dependency>
			<groupId>com.google.collections</groupId>
			<artifactId>google-collections</artifactId>
			<version>1.0-rc2</version>
		</dependency>
		<dependency>
			<groupId>dom4j</groupId>
			<artifactId>dom4j</artifactId>
			<version>1.6.1</version>
		</dependency>
	</dependencies>
</project>