<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) FuseSource, Inc.
    http://fusesource.com

    Licensed 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 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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <artifactId>esb-itests</artifactId>
        <groupId>org.jboss.fuse</groupId>
        <version>6.2.0.redhat-068</version>
    </parent>

    <groupId>org.jboss.fuse.itests</groupId>
    <artifactId>esb-itests-basic</artifactId>
    
    <name>JBoss Fuse :: ESB :: Integration Tests :: Basic</name>

    <dependencies>
        <dependency>
            <groupId>io.fabric8.itests.paxexam</groupId>
            <artifactId>fabric-itests-paxexam-common</artifactId>
            <version>${fabric.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.fuse.itests</groupId>
            <artifactId>esb-itests-common</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.fuse</groupId>
            <artifactId>jboss-fuse-minimal</artifactId>
            <version>${project.version}</version>
            <type>zip</type>
        </dependency>
        <dependency>
            <groupId>org.jboss.fuse</groupId>
            <artifactId>jboss-fuse-medium</artifactId>
            <version>${project.version}</version>
            <type>zip</type>
        </dependency>
        <dependency>
            <groupId>org.jboss.fuse</groupId>
            <artifactId>jboss-fuse-full</artifactId>
            <version>${project.version}</version>
            <type>zip</type>
        </dependency>
        <dependency>
            <groupId>org.jboss.fuse</groupId>
            <artifactId>jboss-fuse-karaf-full</artifactId>
            <version>${project.version}</version>
            <type>zip</type>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.3</version>
            </plugin>
            <plugin>
                <groupId>org.apache.servicemix.tooling</groupId>
                <artifactId>depends-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-depends-file</id>
                        <goals>
                            <goal>generate-depends-file</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <forkMode>pertest</forkMode>
                    <useSystemClassLoader>true</useSystemClassLoader>
                    <useManifestOnlyJar>false</useManifestOnlyJar>
                    <failIfNoTests>false</failIfNoTests>
                    <systemPropertyVariables>
                        <feature>${feature}</feature>
                        <fabricitest.rackspace.identity>${fabricitest.rackspace.identity}</fabricitest.rackspace.identity>
                        <fabricitest.rackspace.credential>${fabricitest.rackspace.credential}</fabricitest.rackspace.credential>
                        <fabricitest.rackspace.image>${fabricitest.rackspace.image}</fabricitest.rackspace.image>
                        <fabricitest.rackspace.location>${fabricitest.rackspace.location}</fabricitest.rackspace.location>
                        <fabricitest.rackspace.user>${fabricitest.rackspace.user}</fabricitest.rackspace.user>

                        <fabricitest.aws.identity>${fabricitest.aws.identity}</fabricitest.aws.identity>
                        <fabricitest.aws.credential>${fabricitest.aws.credential}</fabricitest.aws.credential>
                        <fabricitest.aws.image>${fabricitest.aws.image}</fabricitest.aws.image>
                        <fabricitest.aws.location>${fabricitest.aws.location}</fabricitest.aws.location>
                        <fabricitest.aws.user>${fabricitest.aws.user}</fabricitest.aws.user>

                        <fabricitest.ssh.username>${fabricitest.ssh.username}</fabricitest.ssh.username>
                        <fabricitest.ssh.password>${fabricitest.ssh.password}</fabricitest.ssh.password>
                        <fabricitest.ssh.host>${fabricitest.ssh.host}</fabricitest.ssh.host>
                        <fabricitest.ssh.port>${fabricitest.ssh.port}</fabricitest.ssh.port>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
