<!--
  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 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>
    <groupId>org.apache.cxf.services.sts.systests</groupId>
    <artifactId>cxf-services-sts-systests-basic</artifactId>
    <packaging>jar</packaging>
    <name>Apache CXF STS basic systests</name>
    <url>http://cxf.apache.org</url>

    <parent>
        <groupId>org.mule.apache.cxf</groupId>
        <artifactId>cxf-parent</artifactId>
        <version>2.7.19-MULE-005</version>
        <relativePath>../../../../parent/pom.xml</relativePath>
    </parent>
   
   <dependencies>
       <dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.apache.cxf.services.sts</groupId>
           <artifactId>cxf-services-sts-core</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-transports-http-jetty</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-frontend-jaxws</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-ws-policy</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
        <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-ws-security</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-ws-mex</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-testutils</artifactId>
           <version>${project.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>org.mule.apache.cxf</groupId>
           <artifactId>cxf-rt-databinding-jaxb</artifactId>
           <version>${project.version}</version>
       </dependency>
       <dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>slf4j-jdk14</artifactId>
           <scope>runtime</scope>
       </dependency>
       <dependency>
           <groupId>net.sf.ehcache</groupId>
           <artifactId>ehcache-core</artifactId>
           <version>${cxf.ehcache.version}</version>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-context</artifactId>
           <version>${cxf.spring.version}</version>
       </dependency>
       <dependency>
          <groupId>org.springframework.ldap</groupId>
          <artifactId>spring-ldap-core</artifactId>
          <version>${cxf.spring.ldap.version}</version>
       </dependency>
       <dependency>
          <groupId>com.hazelcast</groupId>
          <artifactId>hazelcast</artifactId>
          <version>${cxf.hazelcast.version}</version>
       </dependency> 
    </dependencies>

    <build>
        <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
        <testResources>
            <testResource>
                <directory>src/test/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </testResource>
            <testResource>
                <directory>src/test/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
            </testResource>
        </testResources>
        
        <plugins>
            <plugin>
                <groupId>org.mule.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>${project.version}</version>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <configuration>
                            <sourceRoot>
                                ${basedir}/target/generated-sources
                            </sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    <wsdl>
                                        ${basedir}/src/test/resources/DoubleItLogical.wsdl
                                    </wsdl>
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    
   <profiles>
        <profile>
            <id>standalone</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <sts.deployment>standalone</sts.deployment>
                                <java.io.tmpdir>${basedir}/target/tmp</java.io.tmpdir>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
             </build>
        </profile>
        <profile>
            <id>war</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <systemPropertyVariables>
                                <sts.deployment>war</sts.deployment>
                                <java.io.tmpdir>${basedir}/target/tmp</java.io.tmpdir>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
             </build>
        </profile>
    </profiles>

</project>
