<?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>owlapi-parent</artifactId>
    <groupId>net.sourceforge.owlapi</groupId>
    <version>4.0.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>owlapi-osgidistribution</artifactId>
  <packaging>bundle</packaging>
  <name>OWLAPI OSGi and Compatibility Distribution</name>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.7</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.semanticweb.owl.owlapi</Bundle-SymbolicName>
            <Export-Package>com.clarkparsia.*,
							org.semanticweb.owlapi.*;-split-package:=merge-first,
							org.semanticweb.owlapitools.*;-split-package:=merge-first,
							uk.ac.manchester.*;-split-package:=merge-first,
							org.obolibrary.*;-split-package:=merge-first,
							org.coode.*;-split-package:=merge-first,
							de.uulm.*;-split-package:=merge-first,
							com.fasterxml.jackson.*;-split-package:=merge-first,
							com.github.jsonldjava.*;-split-package:=merge-first,
							com.google.common.*;-split-package:=merge-first,
							com.google.thirdparty.*;-split-package:=merge-first,
							com.google.inject.*;-split-package:=merge-first,
							org.semarglproject.*;-split-package:=merge-first,
							org.apache.commons.*;-split-package:=merge-first,
							org.apache.http.*;-split-package:=merge-first,
							org.aopalliance.*;-split-package:=merge-first,
							gnu.trove.*;-split-package:=merge-first,
							javax.annotation.*;-split-package:=merge-first,
							javax.inject.*;-split-package:=merge-first</Export-Package>
            <Import-Package>!net.sf.ehcache,!sun.misc,!javax.swing, !net.spy.memcached,
						org.slf4j.*, org.openrdf.*,info.aduna.*,
						javax.crypto, javax.crypto.spec, javax.imageio, 
						javax.net.*, javax.security.*, javax.xml.*, org.ietf.jgss, 
						org.slf4j.*, org.w3c.dom.*, org.xml.sax.*</Import-Package>
          </instructions>
          <executions>
            <execution>
              <id>bundle-manifest</id>
              <phase>install</phase>
              <goals>
                <goal>manifest</goal>
              </goals>
            </execution>
          </executions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>org.apache.felix:org.osgi.core</exclude>
                </excludes>
              </artifactSet>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8.1</version>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <includeDependencySources>true</includeDependencySources>
              <dependencySourceIncludes>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-api</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-apibinding</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-parsers</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-tools</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-impl</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-oboparser</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-compatibility</dependencySourceInclude>
                <dependencySourceInclude>net.sourceforge.owlapi:owlapi-fixers</dependencySourceInclude>
              </dependencySourceIncludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <attach>true</attach>
          <descriptors>
            <descriptor>src/assembly/sources.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.9.5</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.7</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <sesame.version>2.7.12</sesame.version>
  </properties>
</project>

