<?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>openllet-parent</artifactId>
    <groupId>com.github.galigator.openllet</groupId>
    <version>2.6.5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>openllet-distribution</artifactId>
  <packaging>bundle</packaging>
  <name>Openllet :: Distribution</name>
  <description>Distribution module for Openllet</description>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>4.1.0</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Implementation-Title>${project.name}</Implementation-Title>
            <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
            <Implementation-Version>${project.version}.${maven.build.timestamp}</Implementation-Version>
            <Bundle-SymbolicName>com.github.galigator.openllet</Bundle-SymbolicName>
            <Bundle-Version>${project.version}</Bundle-Version>
            <Embed-Dependency>groupId=${project.groupId};inline=true;scope=compile|runtime|provided</Embed-Dependency>
            <Embed-Directory>lib</Embed-Directory>
            <Embed-Transitive>true</Embed-Transitive>
            <_exportcontents>!org.semanticweb.owlapi.test.*,
							openllet.*;-split-package:=merge-first</_exportcontents>
            <Import-Package>!sun.misc,
							!com.google.inject.internal.*;resolution:=optional,
							org.openrdf.*;version="[4.0,5.0)",
							info.aduna.iteration;version="[4.0,5.0)",
							*</Import-Package>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>com.github.galigator.openllet:openllet-functions</include>
                  <include>com.github.galigator.openllet:openllet-core</include>
                  <include>com.github.galigator.openllet:openllet-owlapi</include>
                  <include>com.github.galigator.openllet:openllet-jena</include>
                  <include>com.github.galigator.openllet:openllet-query</include>
                  <include>com.github.galigator.openllet:openllet-explanation</include>
                  <include>com.github.galigator.openllet:openllet-modularity</include>
                </includes>
                <excludes>
                  <exclude>org.apache.felix:org.osgi.core</exclude>
                  <exclude>gnu.getopt:*</exclude>
                  <exclude>org.antlr:*</exclude>
                  <exclude>org.apache.commons:*</exclude>
                  <exclude>org.apache.jena:*</exclude>
                  <exclude>org.jfree:*</exclude>
                  <exclude>org.jgrapht:*</exclude>
                  <exclude>org.slf4j:*</exclude>
                  <exclude>net.sourceforge.owlapi:*</exclude>
                </excludes>
              </artifactSet>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <attach>true</attach>
          <descriptors>
            <descriptor>src/main/assembly/sources.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

