<?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">
  <parent>
    <artifactId>atmosphere-project</artifactId>
    <groupId>com.vaadin.external.atmosphere</groupId>
    <version>2.7.3.slf4jvaadin3</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.vaadin.external.atmosphere</groupId>
  <artifactId>atmosphere-runtime-native</artifactId>
  <packaging>bundle</packaging>
  <name>atmosphere-runtime-native</name>
  <version>2.7.3.slf4jvaadin3</version>
  <url>https://github.com/Atmosphere/atmosphere</url>
  <build>
    <defaultGoal>install</defaultGoal>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/java/</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>org.atmosphere:atmosphere-compat-tomcat</exclude>
                  <exclude>org.atmosphere:atmosphere-compat-tomcat7</exclude>
                  <exclude>org.atmosphere:atmosphere-compat-jbossweb</exclude>
                  <exclude>org.slf4j:slf4j-api</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.atmosphere:atmosphere-runtime</artifact>
                  <includes>
                    <include>org/atmosphere/**</include>
                    <include>META-INF/services/**</include>
                  </includes>
                  <excludes>
                    <exclude>org/atmosphere/cpr/AtmosphereServlet.java</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>${felix-version}</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Import-Package>com.sun*;resolution:=optional,
                            org.glassfish.grizzly*;resolution:=optional,
                            org.apache.catalina*;resolution:=optional;version="[6.0,9)",
                            org.apache.tomcat*;resolution:=optional;version="[6.0,9)",
                            org.eclipse.jetty.continuation;resolution:=optional;version="[7.6,9)",
                            org.eclipse.jetty.websocket;resolution:=optional;version="[7.6,9)",
                            org.eclipse.jetty*;resolution:=optional,
                            org.jboss.servlet*;resolution:=optional,
                            org.apache.coyote*;resolution:=optional,
                            org.mortbay.util.ajax*;resolution:=optional,
                            org.atmosphere.inject*;resolution:=optional,
                            org.atmosphere.jboss*;resolution:=optional,
                            org.apache.shiro*;resolution:=optional,
                            org.jboss.vfs*;resolution:=optional,
                            javax.servlet*;version="${servlet-version-range}",
                            javax.websocket*;resolution:=optional,
                            javax.inject*;resolution:=optional,
                            weblogic.websocket*;resolution:=optional,
                            *,</Import-Package>
            <Export-Package>org.atmosphere.annotation*,
                            org.atmosphere.cache*,
                            org.atmosphere.client*,
                            org.atmosphere.config*,
                            org.atmosphere.config.managed*,
                            org.atmosphere.config.service*,
                            org.atmosphere.container*,
                            org.atmosphere.cpr*,
                            org.atmosphere.inject*,
                            org.atmosphere.handler*,
                            org.atmosphere.interceptor*,
                            org.atmosphere.pool*,
                            org.atmosphere.util*,
                            org.atmosphere.websocket*,
                            org.atmosphere.lifecycle*,
                            org.atmosphere.websocket.protocol*,</Export-Package>
            <Require-Capability>osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)",
                            osgi.extender;filter:="(osgi.extender=osgi.serviceloader.registrar)",
                            osgi.serviceloader;filter:="(osgi.serviceloader=org.atmosphere.inject.Injectable)";cardinality:=multiple</Require-Capability>
            <Provide-Capability>osgi.serviceloader;osgi.serviceloader=javax.servlet.ServletContainerInitializer,
                            osgi.serviceloader;osgi.serviceloader=org.atmosphere.inject.CDIProducer,
                            osgi.serviceloader;osgi.serviceloader=org.atmosphere.inject.Injectable</Provide-Capability>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-servlet_3.0_spec</artifactId>
      <version>1.0</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-websocket</artifactId>
      <version>7.6.9.v20130131</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-util</artifactId>
          <groupId>org.eclipse.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-io</artifactId>
          <groupId>org.eclipse.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-http</artifactId>
          <groupId>org.eclipse.jetty</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.9.10</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>jcommander</artifactId>
          <groupId>com.beust</groupId>
        </exclusion>
        <exclusion>
          <artifactId>bsh</artifactId>
          <groupId>org.beanshell</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty</artifactId>
      <version>6.1.22</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>org.mortbay.jetty</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty-util</artifactId>
      <version>6.1.22</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>org.mortbay.jetty</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mortbay.jetty</groupId>
      <artifactId>jetty-management</artifactId>
      <version>6.1.22</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>org.mortbay.jetty</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.ning</groupId>
      <artifactId>async-http-client</artifactId>
      <version>1.7.7</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>netty</artifactId>
          <groupId>io.netty</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.32</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jul-to-slf4j</artifactId>
      <version>1.7.32</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <version>1.7.32</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-core</artifactId>
      <version>1.1.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.1.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

