<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (c) 2016-2026 Linagora

 This program/library is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation, either version 2.1 of the License, or (at your
 option) any later version.

 This program/library is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with this program/library; If not, see http://www.gnu.org/licenses/
 for the GNU Lesser General Public License version 2.1.
-->
<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>
		<artifactId>petals-soap-parent</artifactId>
		<groupId>org.ow2.petals.samples.soap</groupId>
		<version>5.2.0-1.0.0</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<name>Petals samples for BC SOAP - Axis2 asynchronous client - Transport
		level asynchronous client using WS-Addressing</name>
	<artifactId>axis2-wsa-async-client</artifactId>
	<groupId>org.ow2.petals.samples.soap</groupId>
	<!-- No version set -->
	<packaging>jar</packaging>
	<description>axis2-wsa-async-client</description>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<!-- Axis2 dependencies use different versions of this dependency -->
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>2.18.0</version>
			</dependency>
			<dependency>
				<!-- Axis2 dependencies use different versions of this dependency -->
				<groupId>org.apache.ws.xmlschema</groupId>
				<artifactId>xmlschema-core</artifactId>
				<version>2.3.1</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<dependencies>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-client</artifactId>
			<version>${activemq.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.ws.commons.axiom</groupId>
			<artifactId>axiom-api</artifactId>
			<version>2.0.0</version>
			<exclusions>
				<exclusion>
					<!-- We prefer to use SL4J and JUL for logging instead of commons-logging -->
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<artifactId>axis2-kernel</artifactId>
			<groupId>org.ow2.petals.axis2</groupId>
			<version>${axis2.version}</version>
			<exclusions>
				<exclusion>
					<!-- We prefer to use SL4J and JUL for logging instead of commons-logging -->
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<artifactId>axis2-adb</artifactId>
			<groupId>org.ow2.petals.axis2</groupId>
			<version>${axis2.version}</version>
			<scope>runtime</scope>
			<exclusions>
				<exclusion>
					<!-- We prefer to use SL4J and JUL for logging instead of commons-logging -->
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<artifactId>axis2-transport-local</artifactId>
			<groupId>org.ow2.petals.axis2</groupId>
			<version>${axis2.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<artifactId>axis2-transport-http</artifactId>
			<groupId>org.ow2.petals.axis2</groupId>
			<version>${axis2.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<artifactId>axis2-transport-jms</artifactId>
			<groupId>org.ow2.petals.axis2</groupId>
			<version>${axis2.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.ow2.petals.axis2</groupId>
			<artifactId>addressing</artifactId>
			<version>${axis2.version}</version>
			<type>mar</type>
			<scope>runtime</scope>
		</dependency>

		<dependency>
			<!-- We prefer to use SL4J and JUL for logging instead of
			commons-logging provided with Axis 2 -->
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
		</dependency>
		<dependency>
			<!-- We prefer to use SL4J and JUL for logging instead of
			commons-logging provided with Axis 2 -->
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-jdk14</artifactId>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>analyze</id>
						<configuration>
							<usedDependencies>
								<!-- We don't provide unit test in this project -->
								<usedDependency>org.junit.jupiter:junit-jupiter-api</usedDependency>
								<!-- These following dependencies are needed for Axis2 -->
								<usedDependency>org.ow2.petals.axis2:axis2-adb</usedDependency>
								<usedDependency>org.ow2.petals.axis2:axis2-transport-local</usedDependency>
								<usedDependency>org.ow2.petals.axis2:axis2-transport-http</usedDependency>
								<usedDependency>org.ow2.petals.axis2:axis2-transport-jms</usedDependency>
								<usedDependency>org.ow2.petals.axis2:addressing</usedDependency>
								<usedDependency>org.apache.activemq:activemq-client</usedDependency>
							</usedDependencies>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
							<mainClass>org.ow2.petals.samples.soap.axis2.client.Client</mainClass>
							<useUniqueVersions>false</useUniqueVersions>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.basepom.maven</groupId>
				<artifactId>duplicate-finder-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>enforce-no-duplicate-classes</id>
						<configuration>
							<ignoredResourcePatterns combine.children="append">
								<ignoredResourcePattern>org/apache/axis2/deployment/axis2_default.xml</ignoredResourcePattern>
							</ignoredResourcePatterns>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<appendAssemblyId>false</appendAssemblyId>
							<descriptors>
								<descriptor>src/main/assembly/bin.xml</descriptor>
							</descriptors>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<!-- To launch the Axis2 client: "mvn clean verify exec:exec" -->
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<configuration>
					<executable>java</executable>
					<arguments>
						<argument>-classpath</argument>
						<argument>${project.build.directory}/${project.build.finalName}/${project.artifactId}-${project.version}.jar:${project.build.directory}/${project.build.finalName}/addressing-${axis2.version}.mar</argument>
						<argument>org.ow2.petals.samples.soap.axis2.client.Client</argument>
					</arguments>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<!-- SCM information not needed -->
</project>
