<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">

  <parent>
    <groupId>org.fusesource.cloudmix</groupId>
    <artifactId>org.fusesource.cloudmix.jersey.osgi</artifactId>
    <version>1.2</version>
  </parent>

  <properties>
    <bundle.symbolicName>org.fusesource.cloudmix.controller.bundle</bundle.symbolicName>
    <bundle.namespace>org.fusesource.cloudmix.controller.bundle</bundle.namespace>
    <spring.maven.artifact.version>2.5.1</spring.maven.artifact.version>

    <!-- disable a few things that aren't needed by the OSGi bundle -->
    <!-- add the servlet bits 
         and also the classes referenced from the META-INF/files -->
    <cloudmix.osgi.import.pkg>!org.mortbay.jetty.nio,
                          !org.mortbay.jetty.context,
                          !org.mortbay.jetty.webapp,
                          com.sun.jersey.impl,
                          com.sun.jersey.impl.container,
                          com.sun.jersey.impl.container.httpserver,
                          com.sun.jersey.impl.model.method.dispatch,
                          com.sun.jersey.impl.provider,
                          com.sun.jersey.impl.provider.entity,
                          com.sun.jersey.impl.provider.header,
                          com.sun.jersey.impl.template,
                          com.sun.jersey.impl.uri,
                          javax.servlet,
                          javax.servlet.http,
                          javax.ws.rs.*;version=0.0,
                          javax.xml.bind,
                          javax.xml.bind.annotation,
                          javax.xml.bind.annotation.adapters,
                          javax.xml.bind.attachment,
                          javax.xml.bind.helpers,
                          javax.xml.bind.util,
                          com.sun.istack,
                          com.sun.xml.bind,
                          com.sun.xml.bind.annotation,
                          com.sun.xml.bind.api,
                          com.sun.xml.bind.api.impl,
                          com.sun.xml.bind.marshaller,
                          com.sun.xml.bind.unmarshaller,
                          com.sun.xml.bind.util,
                          com.sun.xml.bind.v2,
                          com.sun.xml.bind.v2.bytecode,
                          com.sun.xml.bind.v2.model.annotation,
                          com.sun.xml.bind.v2.model.core,
                          com.sun.xml.bind.v2.model.impl,
                          com.sun.xml.bind.v2.model.nav,
                          com.sun.xml.bind.v2.model.runtime,
                          com.sun.xml.bind.v2.runtime,
                          com.sun.xml.bind.v2.runtime.output,
                          com.sun.xml.bind.v2.runtime.property,
                          com.sun.xml.bind.v2.runtime.reflect,
                          com.sun.xml.bind.v2.runtime.reflect.opt,
                          com.sun.xml.bind.v2.runtime.unmarshaller,
                          com.sun.xml.bind.v2.schemagen,
                          com.sun.xml.bind.v2.schemagen.xmlschema,
                          com.sun.xml.bind.v2.util,
                          com.sun.xml.txw2,
                          com.sun.xml.txw2.annotation,
                          com.sun.xml.txw2.output,
                          *</cloudmix.osgi.import.pkg>
    <cloudmix.osgi.export.pkg>org.fusesource.cloudmix.controller.bundle</cloudmix.osgi.export.pkg>
    <cloudmix.osgi.embed.dependency>*;scope=compile;inline=false;artifactId=org.fusesource.cloudmix.controller</cloudmix.osgi.embed.dependency>
    <cloudmix.osgi.embed.directory>lib</cloudmix.osgi.embed.directory>
  </properties>

  <modelVersion>4.0.0</modelVersion>
  <artifactId>org.fusesource.cloudmix.controller.bundle</artifactId>

  <name>CloudMix :: Controller - Jersey OSGi code</name>
  <description>CloudMix :: Controller - Jersey OSGi code</description>

  <packaging>bundle</packaging>

  <dependencies>
    <!--
     | uncomment to add all imported (non-local) bundles to your compilation classpath
    <dependency>
      <type>pom</type>
      <groupId>${parent.groupId}</groupId>
      <artifactId>provision</artifactId>
      <optional>true</optional>
    </dependency>
    -->

    <!-- Jersey dependencies, needed to build Jersey dependant code -->
<!--
    <dependency>
      <groupId>jersey-debug</groupId>
      <artifactId>jersey</artifactId>
    </dependency>
-->
    <dependency>
      <groupId>javax.ws.rs</groupId>
      <artifactId>jsr311-api</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
    </dependency>
    <dependency>
      <groupId>org.fusesource.cloudmix</groupId>
      <artifactId>org.fusesource.cloudmix.controller</artifactId>
      <version>${project.version}</version>
    </dependency>
    
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi_R4_core</artifactId>
      <version>1.0</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi_R4_compendium</artifactId>
      <version>1.0</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>${spring.maven.artifact.version}</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${spring.maven.artifact.version}</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>${spring.maven.artifact.version}</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>

</project>