| <?xml version="1.0" encoding="UTF-8"?> |
| <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"> |
| |
| <!-- |
| |
| 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. |
| --> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <packaging>bundle</packaging> |
| <version>${version}</version> |
| <name>A CXF WSDL First OSGi Project </name> |
| <url>http://www.myorganization.org</url> |
| |
| @{repositories} |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> |
| <version>@{geronimo.wsmetadata.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.xml.bind</groupId> |
| <artifactId>jaxb-api</artifactId> |
| <version>@{jaxb.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.xml.ws</groupId> |
| <artifactId>jaxws-api</artifactId> |
| <version>@{jaxws.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <defaultGoal>install</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.5</source> |
| <target>1.5</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-codegen-plugin</artifactId> |
| <version>@{cxf-version}</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <configuration> |
| <!-- Update source root to specify where generated source code should be placed --> |
| <sourceRoot>\${basedir}/src/main/java</sourceRoot> |
| <wsdlOptions> |
| <wsdlOption> |
| <!-- Update wsdl tag with appropriate wsdl file --> |
| <wsdl>\${basedir}/src/main/resources/wsdl/person.wsdl</wsdl> |
| <extraargs> |
| <extraarg>-verbose</extraarg> |
| </extraargs> |
| </wsdlOption> |
| |
| </wsdlOptions> |
| |
| </configuration> |
| <goals> |
| <goal>wsdl2java</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> |
| <Import-Package> |
| javax.jws, |
| javax.wsdl, |
| javax.xml.bind, |
| javax.xml.bind.annotation, |
| javax.xml.namespace, |
| javax.xml.ws, |
| META-INF.cxf, |
| META-INF.cxf.osgi, |
| org.apache.cxf.bus, |
| org.apache.cxf.bus.spring, |
| org.apache.cxf.bus.resource, |
| org.apache.cxf.configuration.spring, |
| org.apache.cxf.resource, |
| org.apache.cxf.jaxws, |
| org.apache.servicemix.cxf.transport.http_osgi, |
| org.springframework.beans.factory.config |
| </Import-Package> |
| <!-- Update Private Package tag with appropriate package name --> |
| <Private-Package> |
| org.apache.servicemix.samples.wsdl_first, |
| org.apache.servicemix.samples.wsdl_first.types |
| </Private-Package> |
| <Require-Bundle>org.apache.cxf.cxf-bundle</Require-Bundle> |
| <!-- |
| <DynamicImport-Package>*</DynamicImport-Package> |
| --> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |