| <?xml version="1.0"?> |
| <!-- |
| 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> |
| <artifactId>jms_spring_config</artifactId> |
| <packaging>jar</packaging> |
| <name>WSDL first demo using the jms transport and jmsConfigFeature</name> |
| <description>WSDL first demo using the jms transport and jmsConfigFeature</description> |
| <parent> |
| <groupId>org.apache.cxf.samples</groupId> |
| <artifactId>cxf-samples</artifactId> |
| <version>3.3.5-SNAPSHOT</version> |
| </parent> |
| <properties> |
| <cxf.version>${project.version}</cxf.version> |
| <cxf.release.base>${basedir}/../..</cxf.release.base> |
| <wsdl.dir>${basedir}/src/main/config</wsdl.dir> |
| </properties> |
| <build> |
| <defaultGoal>install</defaultGoal> |
| <resources> |
| <resource> |
| <directory>wsdl</directory> |
| </resource> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-codegen-plugin</artifactId> |
| <version>${project.version}</version> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <configuration> |
| <wsdlOptions> |
| <wsdlOption> |
| <wsdl>${wsdl.dir}/CustomerService.wsdl</wsdl> |
| <bindingFiles> |
| <bindingFile>${wsdl.dir}/binding.xml</bindingFile> |
| </bindingFiles> |
| </wsdlOption> |
| </wsdlOptions> |
| </configuration> |
| <goals> |
| <goal>wsdl2java</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>server</id> |
| <build> |
| <defaultGoal>test</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| <configuration> |
| <mainClass>com.example.customerservice.server.CustomerServiceSpringServer</mainClass> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>client</id> |
| <build> |
| <defaultGoal>test</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <goals> |
| <goal>java</goal> |
| </goals> |
| <configuration> |
| <mainClass>com.example.customerservice.client.CustomerServiceSpringClient</mainClass> |
| <arguments> |
| <argument>${wsdl.dir}/CustomerService.wsdl</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>jms.broker</id> |
| <build> |
| <defaultGoal>test</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.activemq.tooling</groupId> |
| <artifactId>activemq-maven-plugin</artifactId> |
| <version>5.8.0</version> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| <version>3.3.5-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-jms</artifactId> |
| <version>3.3.5-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf.xjc-utils</groupId> |
| <artifactId>cxf-xjc-runtime</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>activemq-client</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.activemq</groupId> |
| <artifactId>activemq-pool</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </project> |