|
Axis 2 example source code file (pom.xml)
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-fastinfoset <name>Apache Axis 2.0 - Fast Infoset <description>Axis2 Fast Infoset module <dependencies> <dependency> <groupId>com.sun.xml.fastinfoset <artifactId>FastInfoset </dependency> <dependency> <groupId>org.apache.axis2 <artifactId>axis2-kernel <version>${version} </dependency> <dependency> <groupId>org.apache.axis2 <artifactId>axis2-adb <version>${version} </dependency> <dependency> <groupId>wsdl4j <artifactId>wsdl4j </dependency> <dependency> <groupId>commons-logging <artifactId>commons-logging </dependency> <dependency> <groupId>commons-httpclient <artifactId>commons-httpclient </dependency> <dependency> <groupId>commons-fileupload <artifactId>commons-fileupload </dependency> <dependency> <groupId>org.apache.ws.commons.schema <artifactId>XmlSchema </dependency> <dependency> <groupId>org.apache.axis2 <artifactId>axis2-java2wsdl <version>${version} </dependency> <dependency> <groupId>org.apache.axis2 <artifactId>axis2-adb-codegen <version>${version} </dependency> <dependency> <groupId>org.apache.axis2 <artifactId>axis2-codegen <version>${version} </dependency> <dependency> <groupId>annogen <artifactId>annogen </dependency> <dependency> <groupId>org.apache.httpcomponents <artifactId>httpcore </dependency> <dependency> <groupId>backport-util-concurrent <artifactId>backport-util-concurrent </dependency> <dependency> <groupId>commons-codec <artifactId>commons-codec </dependency> <dependency> <groupId>org.apache.neethi <artifactId>neethi </dependency> </dependencies> <profiles> <profile> <id>java14 <activation> <jdk>1.4 </activation> <dependencies> <dependency> <groupId>com.sun.xml.fastinfoset <artifactId>FastInfoset <version>1.1.8 </dependency> <dependency> <groupId>junit <artifactId>junit <version>3.8.2 </dependency> </dependencies> </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"/> <!-- 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"/> <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 Service class <javac fork="true" destdir="target/test-classes" debug="on"> <classpath refid="maven.dependency.classpath"/> <classpath location="${compiled.classes.dir}"/> <include name="**/*SimpleAddService.java"/> <src path="test/"/> </javac> <echo>Generating the WSDL <java classname="org.apache.ws.java2wsdl.Java2WSDL" fork="true"> <classpath> <path refid="maven.dependency.classpath"/> <pathelement location="target/test-classes"/> </classpath> <arg line="-o target/test-classes -of SimpleAddService.wsdl -efd unqualified -cn org.apache.axis2.fastinfoset.SimpleAddService"/> </java> <echo>Compiling SimpleAddService.wsdl <mkdir dir="${wsdl.output.base.dir}/simpleAddService"/> <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <classpath refid="maven.runtime.classpath"/> <classpath location="${compiled.classes.dir}"/> <arg line="-uri target/test-classes/SimpleAddService.wsdl -o target/wsdl/simpleAddService -S . -or"/> </java> <javac fork="true" destdir="target/classes" debug="on"> <classpath refid="maven.runtime.classpath"/> <classpath location="${compiled.classes.dir}"/> <src path="target/wsdl/simpleAddService"/> </javac> </tasks> </configuration> <goals> <goal>run </goals> </execution> </executions> </plugin> <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> <systemProperties> <property> <name>build.repository <value>./target/test-classes </property> </systemProperties> </configuration> </plugin> </plugins> </build> </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: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.