<?xml version="1.0" encoding="UTF-8"?>
<!--

     Copyright 2005-2016 Red Hat, Inc.

     Red Hat 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 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.3.0.redhat-328</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-karaf</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>
		<version>${maven-surefire-itests-plugin-version}</version>
                <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>

    <profiles>
        <profile>
            <id>tests.aix.excludes</id>
            <activation>
                <property>
                    <name>os.name</name>
                    <value>AIX</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <excludes combine.children="append">
                                <exclude>**/EsbProfileLongTest.*</exclude>    <!-- ENTESB-6412 -->
                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>tests.windows.excludes</id>
            <activation>
                <os>
                    <family>Windows</family>
                </os>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <excludes combine.children="append">
                                <exclude>**/EsbBootTest.*</exclude>
                                <exclude>**/EsbProfileLongTest.*</exclude>
                                <exclude>**/EsbProfileTest.*</exclude>
                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

    </profiles>

</project>
