<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">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<artifactId>easy-parent</artifactId>
		<groupId>org.ow2.easywsdl</groupId>
		<version>1.0</version>
	</parent>

	<name>EasyWSDL - Schema manager</name>
	<artifactId>easy-schema</artifactId>
	<groupId>org.ow2.easywsdl</groupId>
	<version>1.0</version>
	<packaging>jar</packaging>
	
	<description />


	<properties>
		<topDirectoryLocation>..</topDirectoryLocation>
	</properties>

	<scm>
		<connection>scm:svn:svn://svn.forge.objectweb.org/svnroot/easywsdl/tags/easy-schema-1.0</connection>
		<developerConnection>scm:svn:svn+ssh://chamerling@svn.forge.objectweb.org/svnroot/easywsdl/tags/easy-schema-1.0</developerConnection>
		<url>http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/easywsdl/tags/easy-schema-1.0</url>
	</scm>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.jdom</groupId>
			<artifactId>jdom</artifactId>
			<version>1.1</version>
		</dependency>

		<!-- jaxb package -->
		<dependency>
			<groupId>org.jvnet.hyperjaxb3</groupId>
			<artifactId>hyperjaxb3-ejb-runtime</artifactId>
			<version>0.3</version>
		</dependency>

	</dependencies>


	<repositories>
		<repository>
			<id>maven2-repository.dev.java.net</id>
			<url>http://download.java.net/maven/2</url>
		</repository>
		<repository>
			<id>maven-repository.dev.java.net</id>
			<url>http://download.java.net/maven/1</url>
			<layout>legacy</layout>
		</repository>
		<repository>
			<id>maven2-repository.jboss.com</id>
			<url>http://repository.jboss.com/maven2</url>
		</repository>
		<repository>
			<id>jfrog.org</id>
			<url>http://www.jfrog.org/artifactory/plugins-releases@repo</url>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>maven2-repository.dev.java.net</id>
			<url>http://download.java.net/maven/2</url>
		</pluginRepository>
		<pluginRepository>
			<id>maven-repository.dev.java.net</id>
			<url>http://download.java.net/maven/1</url>
			<layout>legacy</layout>
		</pluginRepository>
		<!--
			| This repository is needed by the jaxb2-maven-plugin.
			|-->
		<pluginRepository>
			<id>codehaus.release</id>
			<name>CodeHaus Release Repository</name>
			<url>http://repository.codehaus.org</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

	<build>
		<plugins>
			<plugin>
				<groupId>org.jvnet.jaxb2.maven2</groupId>
				<artifactId>maven-jaxb2-plugin</artifactId>
				<version>0.5</version>
				<dependencies>
					<dependency>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
						<version>1.1.1</version>
						<exclusions>
							<exclusion>
								<groupId>log4j</groupId>
								<artifactId>log4j</artifactId>
							</exclusion>
							<exclusion>
								<groupId>logkit</groupId>
								<artifactId>logkit</artifactId>
							</exclusion>
							<exclusion>
								<groupId>avalon-framework</groupId>
								<artifactId>avalon-framework</artifactId>
							</exclusion>
							<exclusion>
								<groupId>javax.servlet</groupId>
								<artifactId>servlet-api</artifactId>
							</exclusion>
						</exclusions>
					</dependency>
					<dependency>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
						<version>1.2.13</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<schemaDirectory>${basedir}/src/main/resources/schema</schemaDirectory>
					<schemaIncludes>
						<include>XMLSchema.xsd</include>
					</schemaIncludes>
					<bindingIncludes>
						<include>binding.xjb</include>
					</bindingIncludes>

					<extension>true</extension>
					<plugins>
						<plugin>
							<groupId>org.jvnet.hyperjaxb3</groupId>
							<artifactId>hyperjaxb3-ejb-plugin</artifactId>
							<version>0.3</version>
						</plugin>
						<plugin>
							<groupId>org.jvnet.jaxb2_commons</groupId>
							<artifactId>basic</artifactId>
							<version>0.2.GA</version>
						</plugin>
					</plugins>
					<args>
						<arg>-XtoString</arg>
						<arg>-Xequals</arg>
						<arg>-XhashCode</arg>
						<arg>-Xhyperjaxb3-ejb</arg>
						<arg>-Xhyperjaxb3-ejb-generateTransientId=true</arg>
					</args>
				</configuration>
			</plugin>

			<!-- Fix hyperjaxb3 bugs -->
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<copy todir="./target/generated-sources/xjc/org/ow2/easywsdl/schema/org/w3/_2001/xmlschema" overwrite="yes">
									<fileset dir="./src/fixbug/">
										<include name="Annotation.java" />
									</fileset>
								</copy>

							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>