<?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.1-integration-incubating-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apache.tuscany.testing</groupId>
    <artifactId>iTest-wsdl</artifactId>
    <version>${testing.version}</version>
    <packaging>jar</packaging>
    <name>Test Suite for SCA WSDL IDL</name>

    <dependencies>
        <dependency>
            <groupId>org.apache.tuscany.sca.kernel</groupId>
            <artifactId>tuscany-api</artifactId>
            <scope>compile</scope>
            <version>0.1-integration-incubating-SNAPSHOT</version>
        </dependency>        
        <dependency>
            <groupId>org.apache.tuscany.sca.kernel</groupId>
            <artifactId>tuscany-core</artifactId>
            <version>0.1-integration-incubating-SNAPSHOT</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tuscany.sca.services.idl</groupId>
            <artifactId>tuscany-wsdl</artifactId>
            <version>0.1-integration-incubating-SNAPSHOT</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tuscany.sca.extensions.axis2</groupId>
            <artifactId>tuscany-axis2</artifactId>
            <scope>runtime</scope>
            <version>0.1-integration-incubating-SNAPSHOT</version>
        </dependency>        
        <dependency>
            <groupId>org.apache.tuscany.sca.services</groupId>
            <artifactId>tuscany-http-jetty</artifactId>
            <scope>runtime</scope>
            <version>0.1-integration-incubating-SNAPSHOT</version>
        </dependency>        
        <dependency>
            <groupId>org.apache.tuscany.sdo</groupId>
            <artifactId>tuscany-sdo-impl</artifactId>
            <version>${sdo.version}</version>
            <scope>compile</scope>
        </dependency>
		<dependency>
			<groupId>org.apache.tuscany.sca.services.databinding</groupId>
			<artifactId>databinding-sdo</artifactId>
			<version>${scaKernelVersion}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.tuscany.sca.extensions.axis2</groupId>
			<artifactId>databinding-axiom</artifactId>
			<version>${scaKernelVersion}</version>
		</dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.2</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>target/sdo-source</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>        
            <plugin>
                <groupId>org.apache.tuscany.sdo</groupId>
                <artifactId>tuscany-sdo-plugin</artifactId>
                <version>1.0-incubator-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>generate-sdo</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <schemaFile>${basedir}/src/main/resources/wsdl/AccountService.wsdl</schemaFile>
                            <javaPackage>com.bigbank.account</javaPackage>
                            <prefix>Account</prefix>
                            <noNotification>true</noNotification>
                            <noContainer>true</noContainer>
                            <noUnsettable>true</noUnsettable>
                        </configuration>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
