<?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>mobi-parent</artifactId>
    <groupId>com.mobi</groupId>
    <version>4.4.0</version>
    <relativePath>../mobi-parent/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>server.utils</artifactId>
  <packaging>bundle</packaging>
  <name>${project.groupId}.${project.artifactId}</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.5.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <finalName>mobi-serverid</finalName>
              <artifactSet>
                <includes>
                  <include>com.mobi:api</include>
                  <include>org.slf4j:slf4j-api</include>
                  <include>ch.qos.logback:logback-core</include>
                  <include>ch.qos.logback:logback-classic</include>
                </includes>
              </artifactSet>
              <transformers>
                <transformer>
                  <mainClass>com.mobi.server.utils.ServerIdUtils</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>com.mobi.server.utils</Bundle-SymbolicName>
            <Bundle-Name>Mobi Server Utils</Bundle-Name>
            <Bundle-Version>${project.version}</Bundle-Version>
            <_snapshot>${maven.build.timestamp}</_snapshot>
            <Export-Package>com.mobi.server.utils</Export-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
