<?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 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>
    <parent>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-parent</artifactId>
        <version>1.6.2</version>
        <relativePath>../parent/pom.xml</relativePath>
    </parent>
    <artifactId>axis2-integration</artifactId>
    <name>Apache Axis2 - Integration</name>
    <description>Axis2 Integration</description>
    <dependencies>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-clustering</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-http</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-local</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-activation_1.1_spec</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>scripting</artifactId>
            <type>mar</type>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb-codegen</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-codegen</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-java2wsdl</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-jaxbri</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <version>${project.version}</version>
            <artifactId>axis2-jaxws</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <version>${project.version}</version>
            <artifactId>axis2-jaxws-integration</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <version>${project.version}</version>
            <artifactId>axis2-jibx</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-json</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-metadata</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-mtompolicy</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-saaj</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-spring</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>org.apache.axis2.osgi</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-xmlbeans</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>addressing</artifactId>
            <version>${project.version}</version>
            <type>mar</type>
        </dependency>
        <dependency>
            <groupId>xmlunit</groupId>
            <artifactId>xmlunit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <profiles>
        <profile>
            <id>java15</id>
            <activation>
                <jdk>1.5</jdk>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <inherited>true</inherited>
                        <configuration>
                            <!-- The pertest forkMode is not ideal but seems to be necessary
                       because the test server doesn't shut down properly :-(
                       Should be removed if possible -->
                            <forkMode>pertest</forkMode>
                            <argLine>-Xms256m -Xmx512m</argLine>
                            <!-- Enable the next 2 lines if you want to attach a debugger
                         <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>-->
                            <includes>
                                <include>**/*Test.java</include>
                            </includes>
                            <excludes>
                                <exclude>**/*Abstract*.java</exclude>
                                <exclude>**/*Util*.java</exclude>
                                <exclude>**/*InteropStubTest.java</exclude>
                                <exclude>**/*ServiceGroupContextTest.java</exclude>
                                <exclude>**/*EchoRawSwAFileInputTest.java</exclude>
                                <exclude>**org/apache/axis2/soap12testing/soap12testsuite/*.java</exclude>
                                <exclude>**/ScenarioST1Test.java</exclude>
                                <exclude>**/samples/wsdl/perf2/*.java</exclude>
                            </excludes>
                            <systemProperties>
                                <property>
                                    <name>build.repository</name>
                                    <value>./target/test-classes</value>
                                </property>
                                <!-- Prevent Mac OS X from showing an icon in the dock during the test run -->
                                <property>
                                    <name>java.awt.headless</name>
                                    <value>true</value>
                                </property>
                            </systemProperties>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>java16</id>
            <activation>
                <jdk>1.6</jdk>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <inherited>true</inherited>
                        <configuration>
                            <!-- The pertest forkMode is not ideal but seems to be necessary
                       because the test server doesn't shut down properly :-(
                       Should be removed if possible -->
                            <forkMode>pertest</forkMode>
                            <argLine>-Xms256m -Xmx512m</argLine>
                            <!-- Enable the next 2 lines if you want to attach a debugger
                         <argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>-->
                            <includes>
                                <include>**/*Test.java</include>
                            </includes>
                            <excludes>
                                <exclude>**/*Abstract*.java</exclude>
                                <exclude>**/*Util*.java</exclude>
                                <exclude>**/*InteropStubTest.java</exclude>
                                <exclude>**/*ServiceGroupContextTest.java</exclude>
                                <exclude>**/*EchoRawSwAFileInputTest.java</exclude>
                                <exclude>**org/apache/axis2/soap12testing/soap12testsuite/*.java</exclude>
                                <exclude>**/ScenarioST1Test.java</exclude>
                                <exclude>**/samples/wsdl/perf2/*.java</exclude>
                                <exclude>**/ComplexDataTypesDocLitBareTest.java</exclude>
                                <exclude>**/ComplexDataTypesTest.java</exclude>
                            </excludes>
                            <systemProperties>
                                <property>
                                    <name>build.repository</name>
                                    <value>./target/test-classes</value>
                                </property>
                                <!-- Prevent Mac OS X from showing an icon in the dock during the test run -->
                                <property>
                                    <name>java.awt.headless</name>
                                    <value>true</value>
                                </property>
                            </systemProperties>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>enterprise</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>gen-enterprise-ts</id>
                                <phase>generate-test-sources</phase>
                                <configuration>
                                    <tasks unless="maven.test.skip">
                                        <!-- Set a property that can be picked up from the ant build.xml's -->
                                        <property name="maven.class.path" refid="maven.runtime.classpath" />
                                        <echo>Building enterprise WSDLs...</echo>
                                        <property name="axis2.home" value="${basedir}/target" />
                                        <property name="maven.junit.jvmargs" value="" />
                                        <path id="maven.dependency.classpath">
                                            <path refid="maven.compile.classpath" />
                                        </path>
                                        <ant antfile="itest-build.xml" inheritall="true" inheritrefs="true" dir="." target="enterprise-wsdl-codegen" />
                                    </tasks>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <url>http://axis.apache.org/axis2/java/core/</url>
    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/axis/axis2/java/core/tags/v1.6.2/modules/integration</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/axis/axis2/java/core/tags/v1.6.2/modules/integration</developerConnection>
        <url>http://svn.apache.org/viewvc/axis/axis2/java/core/tags/v1.6.2/modules/integration</url>
    </scm>
    <build>
        <sourceDirectory>src</sourceDirectory>
        <testSourceDirectory>test</testSourceDirectory>
        <resources>
            <resource>
                <directory>conf</directory>
                <includes>
                    <include>**/*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>src</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
            </resource>
        </resources>
        <testResources>
            <testResource>
                <directory>test</directory>
                <includes>
                    <include>**/*.xml</include>
                    <include>**/*.wsdl</include>
                    <include>**/*.properties</include>
                </includes>
            </testResource>
            <testResource>
                <directory>${project.build.directory}/xmlbeans/resources</directory>
            </testResource>
        </testResources>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <!-- There is a lot of generated code to compile; use fork mode
                         to avoid out of memory issues: -->
                    <fork>true</fork>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-repo-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-classes</outputDirectory>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>samples</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/samples</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>repository-client</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/repository-client</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>local</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/local</outputDirectory>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>chunking-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/chunking-enabledRepository</outputDirectory>
                            <axis2xml>test/org/apache/axis2/engine/chunking-enabled-axis2.xml</axis2xml>
                            <includeModules>false</includeModules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>chunking-disabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/chunking-disabledRepository</outputDirectory>
                            <axis2xml>test/org/apache/axis2/engine/chunking-disabled-axis2.xml</axis2xml>
                            <includeModules>false</includeModules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>integration</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/integrationRepo</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>commons-http-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/commons-http-enabledRepository</outputDirectory>
                            <axis2xml>test/org/apache/axis2/engine/commons-http-enabled-axis2.xml</axis2xml>
                            <includeModules>false</includeModules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>MTOM-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/MTOM-enabledRepository</outputDirectory>
                            <axis2xml>test-resources/mtom/MTOM-enabled-axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>MTOM-fileCache-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/MTOM-fileCache-enabledRepository</outputDirectory>
                            <axis2xml>test-resources/mtom/MTOM-fileCache-enabled-axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>SwA-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/SwA-enabledRepository</outputDirectory>
                            <axis2xml>test-resources/swa/SwA-enabled-axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>SwA-fileCache-enabled</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/SwA-fileCache-enabledRepository</outputDirectory>
                            <axis2xml>test-resources/swa/SwA-fileCache-enabled-axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>deployment_repo</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/deployment_repo</outputDirectory>
                            <axis2xml>test-resources/deployment/deployment.both.axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Standard</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/Repository</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>perf2</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/perf2/build/repo</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>perf</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/perf/build/repo/conf</outputDirectory>
                            <axis2xml>conf/axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                    <execution>
                        <id>jaxrs</id>
                        <phase>generate-test-sources</phase>
                        <goals>
                            <goal>create-test-repository</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>target/test-resources/jaxrs-repository</outputDirectory>
                            <axis2xml>test-resources/jaxrs/pojo-enabled-axis2.xml</axis2xml>
                            <modules>addressing</modules>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <configurationDirectory>conf</configurationDirectory>
                    <includeServices>false</includeServices>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>gen-ts</id>
                        <phase>generate-test-sources</phase>
                        <configuration>
                            <tasks unless="maven.test.skip">
                                <condition property="test.skip">
                                    <equals arg1="true" arg2="${maven.test.skip}" />
                                </condition>
                                <echo>${test.skip}</echo>
                                <property name="addressing_version" value="${project.version}" />
                                <property name="maven.class.path" refid="maven.runtime.classpath" />
                                <property name="maven.test.path" refid="maven.compile.classpath" />
                                <ant antfile="itest-build.xml" inheritall="true" inheritrefs="true" dir="." target="generate-test-sources" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>build-repo</id>
                        <phase>test-compile</phase>
                        <configuration>
                            <tasks unless="maven.test.skip">
                                <condition property="test.skip">
                                    <equals arg1="true" arg2="${maven.test.skip}" />
                                </condition>
                                <echo>${test.skip}</echo>
                                <property name="addressing_version" value="${project.version}" />
                                <property name="groovy.all.version" value="${groovy.all.version}" />
                                <property name="maven.repo.local" value="${settings.localRepository}" />
                                <property name="maven.class.path" refid="maven.runtime.classpath" />

                                <path id="maven.dependency.classpath">
                                    <path refid="maven.compile.classpath" />
                                    <path refid="maven.runtime.classpath" />
                                </path>
                                <ant antfile="itest-build.xml" inheritall="true" inheritrefs="true" dir="." target="build-repos" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>add-test-source</id>
                        <phase>process-test-resources</phase>
                        <goals>
                            <goal>add-test-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${project.build.directory}/wsdl/complexdatatype/src</source>
                                <source>${project.build.directory}/wsdl/complexdatatypebare/src</source>
                                <source>${project.build.directory}/xmlbeans/java</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
