| <?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 Code 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> |
| <!-- Needed for Client --> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| <version>@{cxf-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-rt-transports-http</artifactId> |
| <version>@{cxf-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.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> |
| <Private-Package> |
| !${packageName}.client, |
| ${packageName}, |
| ${packageName}.types |
| </Private-Package> |
| <Require-Bundle>org.apache.cxf.cxf-bundle</Require-Bundle> |
| <!-- |
| <DynamicImport-Package>*</DynamicImport-Package> |
| --> |
| </instructions> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <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>${packageName}.client.Client</mainClass> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |