<?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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.uberfire</groupId>
    <artifactId>uberfire-parent-with-dependencies</artifactId>
    <version>0.7.3.Final</version>
    <relativePath>../uberfire-parent-with-dependencies/pom.xml</relativePath>
  </parent>

  <artifactId>uberfire-commons</artifactId>
  <packaging>bundle</packaging>

  <name>Uberfire Commons</name>
  <description>Collection of reusable (not depending on any other UberFire module) components for Uberfire.</description>

  <dependencies>

    <!-- NOTE TO MAINTAINERS: This module is used by UberFire's VFS, which must remain independent of "web" technologies.
         Don't add dependencies from this module to any other UberFire or Errai module! See UF-131 and UF-135 for details. -->

    <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

    <!-- EJB for AsyncExecutorService -->
    <dependency>
      <groupId>org.jboss.spec.javax.ejb</groupId>
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
      <scope>provided</scope>
    </dependency>
  </dependencies>


  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.uberfire.commons</Bundle-SymbolicName>
            <Import-Package>
              !org.uberfire.commons,
              *
            </Import-Package>
            <Export-Package>
              org.uberfire.commons
            </Export-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>