<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.overlord</groupId>
    <artifactId>overlord-commons</artifactId>
    <version>2.0.10.Final</version>
  </parent>
  <artifactId>overlord-commons-gwt</artifactId>
  <packaging>bundle</packaging>
  <name>Overlord Commons: GWT</name>
  
  <dependencies>
    <dependency>
      <groupId>org.jboss.spec.javax.servlet</groupId>
      <artifactId>jboss-servlet-api_3.0_spec</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <!-- Include some of the source for this project so that it can be used by GWT projects. -->
      <resource>
        <directory>src/main/java</directory>
        <includes>
          <include>**/client/**</include>
          <include>**/*.gwt.xml</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
            <Bundle-Name>${project.name}</Bundle-Name>
            <Bundle-Version>${project.version}</Bundle-Version>
            <Export-Package>
              org.overlord.commons.gwt.server.filters
            </Export-Package>
            <Import-Package>
              javax.servlet,
              javax.servlet.http,
              !javax.inject,
              !com.google.gwt.animation.client, 
              !com.google.gwt.core.client, 
              !com.google.gwt.dom.client, 
              !com.google.gwt.event.dom.client, 
              !com.google.gwt.event.logical.shared, 
              !com.google.gwt.event.shared, 
              !com.google.gwt.i18n.client, 
			  !com.google.gwt.safehtml.shared,
              !com.google.gwt.user.client, 
              !com.google.gwt.user.client.ui, 
              !com.google.web.bindery.event.shared, 
              !javax.annotation
            </Import-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>