|
Axis 2 example source code file (pom.xml)
This example Axis 2 source code file (pom.xml) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The Axis 2 pom.xml source code
<?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
<parent>
<groupId>org.apache.axis2
<artifactId>axis2-parent
<version>1.3
<relativePath>../parent/pom.xml
</parent>
<artifactId>axis2-integration
<name>Apache Axis 2.0 - Integration
<description>Axis2 Integration
<dependencies>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-clustering
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-scripting
<type>mar
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-adb-codegen
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-adb
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-codegen
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-java2wsdl
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-jaxbri
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-jaxws-api
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<version>${version}
<artifactId>axis2-jaxws
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<version>${version}
<artifactId>axis2-jibx
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-json
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-kernel
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-metadata
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-mtompolicy
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-saaj-api
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-saaj
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-spring
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-xmlbeans
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.axis2
<artifactId>axis2-kernel
<version>${version}
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs
<artifactId>geronimo-javamail_1.4_spec
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.xml.bind
<artifactId>jaxb-api
</dependency>
<dependency>
<groupId>org.apache.ws.commons.schema
<artifactId>XmlSchema
</dependency>
<dependency>
<groupId>org.apache.woden
<artifactId>woden
</dependency>
<dependency>
<groupId>com.sun.xml.bind
<artifactId>jaxb-impl
<exclusions>
<exclusion>
<artifactId>jsr173
<groupId>javax.xml
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.sun.xml.bind
<artifactId>jaxb-xjc
</dependency>
<dependency>
<groupId>xalan
<artifactId>xalan
</dependency>
<dependency>
<groupId>javax.servlet
<artifactId>servlet-api
</dependency>
<dependency>
<groupId>xmlbeans
<artifactId>xbean
</dependency>
<dependency>
<groupId>org.apache.activemq
<artifactId>apache-activemq
<!--
<artifactId>commons-httpclient
</exclusion>
</exclusions>-->
</dependency>
<dependency>
<groupId>wsdl4j
<artifactId>wsdl4j
</dependency>
<dependency>
<groupId>org.apache.neethi
<artifactId>neethi
</dependency>
<dependency>
<groupId>javax.xml.bind
<artifactId>jaxb-api
<exclusions>
<exclusion>
<artifactId>jsr173
<groupId>javax.xml
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>groovy
<artifactId>groovy-all
<version>${groovy.all.version}
</dependency>
</dependencies>
<profiles>
<profile>
<id>java14
<activation>
<jdk>1.4
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin
<inherited>true
<configuration>
<skip>false
<!-- 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
<argLine>-Xms256m -Xmx512m
<!-- 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-->
<includes>
<include>**/*Test.java
</includes>
<excludes>
<exclude>**/*Abstract*.java
<exclude>**/*Util*.java
<exclude>**/*InteropStubTest.java
<exclude>**/*ServiceGroupContextTest.java
<exclude>**/*EchoRawSwAFileInputTest.java
<exclude>**org/apache/axis2/mail/*.java
<exclude>**org/apache/axis2/transport/DualChannelRequestResponseRawXMLTest.java
<exclude>**org/apache/axis2/soap12testing/soap12testsuite/*.java
<exclude>**/ScenarioST1Test.java
<exclude>**/samples/wsdl/perf2/*.java
</excludes>
<systemProperties>
<property>
<name>build.repository
<value>./target/test-classes
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java15
<activation>
<jdk>1.5
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin
<inherited>true
<configuration>
<skip>false
<!-- 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
<argLine>-Xms256m -Xmx512m
<!-- 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-->
<includes>
<include>**/*Test.java
</includes>
<excludes>
<exclude>**/*Abstract*.java
<exclude>**/*Util*.java
<exclude>**/*InteropStubTest.java
<exclude>**/*ServiceGroupContextTest.java
<exclude>**/*EchoRawSwAFileInputTest.java
<exclude>**org/apache/axis2/mail/*.java
<exclude>**org/apache/axis2/transport/DualChannelRequestResponseRawXMLTest.java
<exclude>**org/apache/axis2/soap12testing/soap12testsuite/*.java
<exclude>**/ScenarioST1Test.java
<exclude>**/samples/wsdl/perf2/*.java
</excludes>
<systemProperties>
<property>
<name>build.repository
<value>./target/test-classes
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>java16
<activation>
<jdk>1.6
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin
<inherited>true
<configuration>
<skip>false
<!-- 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
<argLine>-Xms256m -Xmx512m
<!-- 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-->
<includes>
<include>**/*Test.java
</includes>
<excludes>
<exclude>**/*Abstract*.java
<exclude>**/*Util*.java
<exclude>**/*InteropStubTest.java
<exclude>**/*ServiceGroupContextTest.java
<exclude>**/*EchoRawSwAFileInputTest.java
<exclude>**org/apache/axis2/mail/*.java
<exclude>**org/apache/axis2/transport/DualChannelRequestResponseRawXMLTest.java
<exclude>**org/apache/axis2/soap12testing/soap12testsuite/*.java
<exclude>**/ScenarioST1Test.java
<exclude>**/samples/wsdl/perf2/*.java
<exclude>**/BaseDataTypesTest.java
<exclude>**/ComplexDataTypesTest.java
</excludes>
<systemProperties>
<property>
<name>build.repository
<value>./target/test-classes
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>enterprise
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-antrun-plugin
<executions>
<execution>
<id>gen-enterprise-ts
<phase>generate-test-sources
<configuration>
<tasks>
<!-- 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...
<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
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<sourceDirectory>src
<testSourceDirectory>test
<resources>
<resource>
<directory>conf
<includes>
<include>**/*.properties
</includes>
</resource>
<resource>
<directory>src
<includes>
<include>**/*.properties
<include>**/*.xml
</includes>
</resource>
<resource>
<directory>resources
<includes>
<include>**/*
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>test
<includes>
<include>**/*.xml
<include>**/*.wsdl
<include>**/*.properties
</includes>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin
<inherited>true
<configuration>
<source>1.4
<target>1.4
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-antrun-plugin
<executions>
<execution>
<id>gen-ts
<phase>generate-test-sources
<configuration>
<tasks>
<!-- Set a property that can be picked up from the ant build.xml's -->
<property name="maven.class.path" refid="maven.runtime.classpath"/>
<property name="maven.test.path" refid="maven.compile.classpath"/>
<echo>${maven.test.path}
<!-- copy the mars so that they are available on the test classpath -->
<copy file="../addressing/target/addressing-${version}.mar"
tofile="target/test-classes/modules/addressing-${version}.mar"/>
<property name="axis2.home" value="${basedir}/target"/>
<property name="maven.junit.jvmargs" value=""/>
<path id="maven.dependency.classpath">
<path refid="maven.compile.classpath"/>
</path>
<!-- compiling some custom wsdl files -->
<property name="wsdl.source.dir" value="test-resources/wsdl"/>
<property name="wsdl.output.base.dir" value="target/wsdl"/>
<!-- make the dirs -->
<mkdir dir="${wsdl.output.base.dir}"/>
<echo>Compiling ComplexDataTypes.wsdl
<mkdir dir="${wsdl.output.base.dir}/complexdatatype"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.runtime.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-ap -o target/wsdl/complexdatatype -s -u -uw -uri test-resources/ComplexDataTypes/ComplexDataTypes.wsdl"/>
</java>
<javac fork="true" destdir="target/classes" debug="on">
<classpath refid="maven.runtime.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<src path="target/wsdl/complexdatatype"/>
</javac>
<echo>Compiling DocumentUnwrappingTest.wsdl
<mkdir dir="${wsdl.output.base.dir}/documentunwrapping"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.runtime.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-ap -o target/wsdl/documentunwrapping -ss -sd -ssi -u -g -uw -uri test-resources/wsdl/DocumentUnwrappingTest.wsdl"/>
</java>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="target/wsdl/documentunwrapping"/>
<echo>Compiling RPCUnwrappingTest.wsdl
<mkdir dir="${wsdl.output.base.dir}/rpcunwrapping"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.runtime.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-ap -o target/wsdl/rpcunwrapping -ss -sd -ssi -u -g -uw -uri test-resources/wsdl/RPCUnwrappingTest.wsdl"/>
</java>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="target/wsdl/rpcunwrapping"/>
<echo>Compiling ComplexDataTypesDocLitBare.wsdl
<mkdir dir="${wsdl.output.base.dir}/complexdatatypebare"/>
<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
<classpath refid="maven.runtime.classpath"/>
<classpath location="${compiled.classes.dir}"/>
<arg line="-o target/wsdl/complexdatatypebare -s -uri test-resources/ComplexDataTypesDocLitBare/ComplexDataTypesDocLitBare.wsdl"/>
</java>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="target/wsdl/complexdatatypebare"/>
<copy toDir="target/classes" failonerror="false">
<fileset dir="target/wsdl/complexdatatypebare/build/classes">
<include name="**/*.class"/>
</fileset>
</copy>
<!-- compile the schema for XMLbeans -->
<java classname="org.apache.xmlbeans.impl.tool.SchemaCompiler" fork="true">
<classpath refid="maven.runtime.classpath"/>
<arg line="-src target/xmlbeans-src -d target/classes test-resources/xsd/type-test.xsd"/>
</java>
<ant antfile="itest-build.xml" inheritall="true" inheritrefs="true"
dir="." target="rpc-wsdl-codegen"/>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestModuleB"/>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestModuleC"/>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestServiceB"/>
<ant antfile="build.xml" inheritall="true" inheritrefs="true"
dir="test-resources/SOAP12Testing/SOAP12TestServiceC"/>
</tasks>
</configuration>
<goals>
<goal>run
</goals>
</execution>
<execution>
<id>build-repo
<phase>test-compile
<configuration>
<tasks>
<property name="addressing_version" value="${version}"/>
<property name="groovy.all.version" value="${groovy.all.version}"/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<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
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-surefire-report-plugin
</plugin>
</plugins>
</reporting>
</project>
Other Axis 2 examples (source code examples)
Here is a short list of links related to this Axis 2 pom.xml source code file:
|