| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cxf-parent</artifactId> |
| <version>3.20.6-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-cxf-soap</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>Camel :: CXF :: SOAP</name> |
| <description>Camel CXF SOAP support</description> |
| |
| <properties> |
| <camel.osgi.import.defaults /> |
| <camel.osgi.import> |
| !org.springframework.boot.*, |
| !org.springframework.context.annotation.*;resolution:=optional, |
| !org.apache.camel.component.cxf, |
| !org.apache.camel.component.cxf.blueprint, |
| !org.apache.camel.component.cxf.converter, |
| !org.apache.camel.component.cxf.feature, |
| !org.apache.camel.component.cxf.interceptors, |
| !org.apache.camel.component.cxf.jaxrs, |
| !org.apache.camel.component.cxf.spring*, |
| !org.apache.camel.component.cxf.util, |
| !org.apache.camel.blueprint, |
| javax.activation.*;version="${javax-activation-version-range}", |
| javax.jws*;version="[0.0,3)", |
| javax.ws.rs*;version="[0.0,3)", |
| javax.xml.soap*;version="[1.3,2)", |
| javax.xml.stream*;version="[0.0,2)", |
| javax.xml.ws*;version="[0.0,3.0)", |
| org.apache.camel.*;${camel.osgi.import.camel.version}, |
| org.apache.camel.component.cxf.blueprint;${camel.osgi.import.camel.version};resolution:=optional, |
| org.apache.camel.component.cxf.jaxrs.blueprint;${camel.osgi.import.camel.version};resolution:=optional, |
| org.apache.cxf.*;version="${cxf-version-range}", |
| ${camel.osgi.import.defaults}, |
| ${camel.osgi.import.additional}, |
| org.osgi.service.blueprint;resolution:=optional, |
| org.osgi.service.blueprint.container;resolution:=optional, |
| org.osgi.service.blueprint.reflect;resolution:=optional, |
| org.apache.aries.blueprint;version="[1.0,2.0)";resolution:=optional, |
| org.apache.aries.blueprint.reflect;version="[1.0,2.0)";resolution:=optional, |
| org.apache.aries.blueprint.mutable;version="[1.0,2.0)";resolution:=optional, |
| org.apache.camel.blueprint;resolution:=optional, |
| * |
| </camel.osgi.import> |
| <camel.osgi.failok>true</camel.osgi.failok> |
| |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-attachments</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cxf-common</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cxf-transport</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-http-base</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <version>${javax-servlet-api-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-http</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-features-logging</artifactId> |
| </dependency> |
| |
| |
| <!-- Test Dependencies --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cxf-common</artifactId> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-xml</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-xpath</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-junit5</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Try to test convert PayLoad into POJO --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-jaxb</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- http client tests --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-http</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- test for cxf failover feature --> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-features-clustering</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-jms</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-http-jetty</artifactId> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-io</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-security</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-continuation</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-http</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-jetty</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-bindings-soap</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-testutils</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- this dependency is just for testing --> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-ws-rm</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-ws-security</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-net</groupId> |
| <artifactId>commons-net</artifactId> |
| <version>${commons-net-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>${commons-lang3-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <defaultGoal>install</defaultGoal> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| <excludes> |
| <exclude>META-INF/spring.*</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| <plugins> |
| <!-- generate the attached tests jar --> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <excludes> |
| <exclude>log4j2.properties</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <childDelegation>false</childDelegation> |
| <forkedProcessTimeoutInSeconds>300</forkedProcessTimeoutInSeconds> |
| <reportFormat>brief</reportFormat> |
| <useFile>false</useFile> |
| <runOrder>alphabetical</runOrder> |
| <!--parallel>classes</parallel> |
| <perCoreThreadCount>true</perCoreThreadCount> |
| <threadCount>2</threadCount--> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-codegen-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <configuration> |
| <fork>${cxf.codegenplugin.forkmode}</fork> |
| <additionalJvmArgs>${cxf.codegen.jvmArgs}</additionalJvmArgs> |
| <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot> |
| <defaultOptions> |
| <frontEnd>jaxws21</frontEnd> |
| </defaultOptions> |
| <wsdlOptions> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/MultiPartTest.wsdl</wsdl> |
| </wsdlOption> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/person.wsdl</wsdl> |
| </wsdlOption> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/order.wsdl</wsdl> |
| </wsdlOption> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/person-non-wrapper.wsdl</wsdl> |
| <extraargs> |
| <extraarg>-b</extraarg> |
| <extraarg>${basedir}/src/test/resources/person-non-wrapper-binding.xml |
| </extraarg> |
| </extraargs> |
| </wsdlOption> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/soap_header.wsdl</wsdl> |
| <extraargs> |
| <extraarg>-verbose</extraarg> |
| </extraargs> |
| </wsdlOption> |
| <wsdlOption> |
| <wsdl>${basedir}/src/test/resources/pizza_service.wsdl</wsdl> |
| <extraargs> |
| <extraarg>-exsh</extraarg> |
| <extraarg>true</extraarg> |
| </extraargs> |
| </wsdlOption> |
| </wsdlOptions> |
| </configuration> |
| <goals> |
| <goal>wsdl2java</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>ibm-jdk</id> |
| <activation> |
| <property> |
| <name>java.vendor</name> |
| <value>IBM Corporation</value> |
| </property> |
| </activation> |
| <!-- |
| Add the Sun jaxp-ri as a dependency when using the ibm jdk, so that |
| cxf's dependency on the Sun saaj can work with the ibm jdk. |
| --> |
| <dependencies> |
| <dependency> |
| <groupId>com.sun.xml.parsers</groupId> |
| <artifactId>jaxp-ri</artifactId> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>jdk17-build</id> |
| <activation> |
| <jdk>[17,)</jdk> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <argLine>--add-opens java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED --add-opens java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |