| <!-- |
| 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> |
| <groupId>org.apache.cxf.samples</groupId> |
| <artifactId>jax_rs_minimal_osgi</artifactId> |
| <name>JAX-RS Minimal OSGI Demo</name> |
| <description>JAX-RS Minimal OSGI Demo</description> |
| <version>2.6.18-SNAPSHOT</version> |
| |
| <parent> |
| <groupId>org.apache.cxf.samples</groupId> |
| <artifactId>cxf-samples</artifactId> |
| <version>2.6.18-SNAPSHOT</version> |
| <relativePath>../..</relativePath> |
| </parent> |
| |
| <properties> |
| <cxf.version>${project.version}</cxf.version> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| </properties> |
| |
| <build> |
| <!-- http://maven.apache.org/plugins/maven-dependency-plugin/ --> |
| <!-- I'm using the dependency plugin to build a dependency list that would get placed in FileInstall's |
| load folder; I couldn't get maven-assembly-plugin's dependencySet to work as I had desired --> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.3.1</version> |
| <configuration> |
| <archive> |
| <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.10</version> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.2</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/dependencies</outputDirectory> |
| <excludeScope>provided</excludeScope> |
| <excludeGroupIds>org.osgi,org.slf4j</excludeGroupIds> |
| <excludeArtifactIds>geronimo-servlet_2.5_spec,org.eclipse.osgi,org.osgi.foundation</excludeArtifactIds> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- http://maven.apache.org/plugins/maven-assembly-plugin/howto.html --> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>2.2.1</version> |
| <configuration> |
| <descriptors> |
| <descriptor>src/main/assembly/descriptor.xml</descriptor> |
| </descriptors> |
| <outputDirectory>target/delivery</outputDirectory> |
| <workDirectory>target/assembly/work</workDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <executable>java</executable> |
| <arguments> |
| <!-- |
| <argument>-Xdebug</argument> |
| <argument>-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044</argument> |
| --> |
| <argument>-jar</argument> |
| <argument>org.eclipse.osgi-3.6.2.R36x_v20110210.jar</argument> |
| <argument>-console</argument> |
| </arguments> |
| <workingDirectory>${project.build.directory}/delivery/${project.artifactId}-${project.version}-equinox/${project.artifactId}-${project.version}/</workingDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| |
| <!-- for OSGI ServiceTracker & ConfigurationAdmin (needed in CXF 2.5) --> |
| |
| <dependency> |
| <groupId>org.eclipse.osgi</groupId> |
| <artifactId>org.eclipse.osgi.services</artifactId> |
| <version>3.2.100.v20100503</version> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- for CXF's JAX-RS implementation --> |
| |
| <dependency> |
| <groupId>org.apache.cxf</groupId> |
| <artifactId>cxf-bundle-jaxrs</artifactId> |
| <version>2.6.18-SNAPSHOT</version> |
| <exclusions> |
| <!-- CXF's dependency tree includes JARs that are not OSGI bundles; we'll import the correct lines later --> |
| <exclusion> |
| <groupId>aopalliance</groupId> |
| <artifactId>aopalliance</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.xml.bind</groupId> |
| <artifactId>jaxb-impl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.activation</groupId> |
| <artifactId>activation</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.xml.bind</groupId> |
| <artifactId>jaxb-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.ws.rs</groupId> |
| <artifactId>jsr311-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-activation_1.1_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-annotation_1.0_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-javamail_1.4_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-servlet_3.0_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-stax-api_1.0_spec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.ws.xmlschema</groupId> |
| <artifactId>xmlschema-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.codehaus.woodstox</groupId> |
| <artifactId>woodstox-core-asl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.codehaus.woodstox</groupId> |
| <artifactId>wstx-asl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.codehaus.woodstox</groupId> |
| <artifactId>stax2-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-continuation</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-http</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-server</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-aop</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-asm</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-beans</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-expression</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-web</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>stax</groupId> |
| <artifactId>stax-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>wsdl4j</groupId> |
| <artifactId>wsdl4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- special OSGI friendly version of jsr311-api --> |
| |
| <dependency> |
| <groupId>org.apache.servicemix.specs</groupId> |
| <artifactId>org.apache.servicemix.specs.jsr311-api-1.1.1</artifactId> |
| <version>1.9.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- BEGIN Java 1.5 dependencies --> |
| <!-- If you are using Java 1.6, you may comment out these dependencies --> |
| |
| <dependency> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-annotation_1.0_spec</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.servicemix.specs</groupId> |
| <artifactId>org.apache.servicemix.specs.activation-api-1.1</artifactId> |
| <version>1.9.0</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.servicemix.specs</groupId> |
| <artifactId>org.apache.servicemix.specs.jaxb-api-2.2</artifactId> |
| <version>1.9.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.activation</groupId> |
| <artifactId>activation</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.xml.stream</groupId> |
| <artifactId>stax-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.geronimo.specs</groupId> |
| <artifactId>geronimo-activation_1.1_spec</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.servicemix.specs</groupId> |
| <artifactId>org.apache.servicemix.specs.stax-api-1.0</artifactId> |
| <version>1.9.0</version> |
| </dependency> |
| |
| <!-- END Java 1.5 dependencies --> |
| |
| <!-- we're using FileInstall to automatically deploy our bundles --> |
| <!-- see http://wiki.restlet.org/docs_2.0/13-restlet/24-restlet/238-restlet.html --> |
| |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.fileinstall</artifactId> |
| <version>3.1.10</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- runtime dependencies for Eclipse Equinox OSGI container --> |
| |
| <dependency> |
| <groupId>org.sonatype.tycho</groupId> |
| <artifactId>org.eclipse.osgi</artifactId> |
| <version>3.6.2.R36x_v20110210</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- provide an implementation of the OSGI HttpService; I would use Equinox's but it's not in Maven Central :( --> |
| |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.http.bundle</artifactId> |
| <version>2.2.0</version> |
| <scope>compile</scope> <!-- using compile instead of test so we don't need to import geronimo-servlet_3.0_spec --> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| </dependencies> |
| |
| <!-- |
| <repositories> |
| <repository> |
| <id>apache-snapshots</id> |
| <name>Apache SNAPSHOT Repository</name> |
| <url>http://repository.apache.org/snapshots</url> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| </repository> |
| </repositories> |
| --> |
| |
| </project> |