<?xml version="1.0" encoding="UTF-8"?>
<!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    * 
    *   http://www.apache.org/licenses/LICENSE-2.0
    * 
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.    
-->
<project>
	<parent>
		<groupId>org.apache.tuscany.testing</groupId>
		<artifactId>sca-itest</artifactId>
		<version>0.91-incubating-SNAPSHOT</version>
		<relativePath>../pom.xml</relativePath>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>iTest-exceptions-crossBinding</artifactId>
	<packaging>jar</packaging>
	<name>Test Suite Exception Handling cross bindings</name>
	<!-- JAX-WS temporary only until java.net maven2 repo is ready-->
	<repositories>
		<repository>
			<id>java.net</id>
			<url>https://maven-repository.dev.java.net/nonav/repository/</url>
			<layout>legacy</layout>
		</repository>
	</repositories>
	<dependencies>
		<!-- Required extensions -->
		<dependency>
			<groupId>org.apache.tuscany.sca.services.databinding</groupId>
			<artifactId>databinding-sdo</artifactId>
			<version>${scaKernelVersion}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tuscany.sca.services.databinding</groupId>
			<artifactId>databinding-jaxb</artifactId>
			<version>${scaKernelVersion}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tuscany.sca.extensions.axis2</groupId>
			<artifactId>databinding-axiom</artifactId>
			<version>${scaKernelVersion}</version>
		</dependency>
		<!-- End of Required extensions -->
		<!-- sun's jax-ws -->
		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>jaxws-rt</artifactId>
			<version>2.1</version>
		</dependency>
		<!--  you will need to install these on your internal repo
		   https://jax-ws.dev.java.net/2.1/ download binary
		    mvn  install:install-file "-DgroupId=com.sun.xml.ws" "-DartifactId=http"  "-Dversion=2.1" "-Dpackaging=jar" "-Dfile=jaxws-ri\lib\http.jar"
            mvn  install:install-file "-DgroupId=com.sun.xml.ws" "-DartifactId=resolver" "-Dversion=2.1" "-Dpackaging=jar" "-Dfile=jaxws-ri\lib\resolver.jar"
		 -->
		<!--		 
		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>http</artifactId>
			<version>2.1</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>resolver</artifactId>
			<version>2.1</version>
		</dependency>
-->
		<dependency>
			<groupId>javax.jws</groupId>
			<artifactId>jsr181-api</artifactId>
			<version>1.0-MR1</version>
		</dependency>
		<dependency>
			<groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId>
			<version>2.1</version>
		</dependency>
		<!-- ENDOF sun's jax-ws -->
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>
			<!-- Sun's JAX-WS Generation -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxws-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-jaxb</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>wsimport</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory>
					<verbose>true</verbose>
					<packageName>org.apache.tuscany.sca.test.exceptions.impl.jaxb</packageName>
					<keep>true</keep>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>javax.jws</groupId>
						<artifactId>jsr181-api</artifactId>
						<version>1.0-MR1</version>
					</dependency>
				</dependencies>
			</plugin>
			<!-- SDO Generation -->
			<plugin>
				<groupId>org.apache.tuscany.sdo</groupId>
				<artifactId>tuscany-sdo-plugin</artifactId>
				<version>1.0-incubating-beta1</version>
				<executions>
					<execution>
						<configuration>
							<schemaFile>${basedir}/src/main/resources/wsdl.sdo/StockExceptionTest.wsdl</schemaFile>
							<noNotification>true</noNotification>
							<noContainer>true</noContainer>
							<noUnsettable>true</noUnsettable>
						</configuration>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.tuscany.sca.extensions.axis2.plugins</groupId>
				<artifactId>tuscany-plugin-wsdl2java</artifactId>
				<version>${scaKernelVersion}</version>
				<executions>
					<execution>
						<configuration>
							<wsdlFile>${basedir}/src/main/resources/wsdl.sdo/StockExceptionTest.wsdl</wsdlFile>
						</configuration>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
