<?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>julielab-embeddings-management</artifactId>
    <groupId>de.julielab</groupId>
    <version>1.0.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>julielab-embeddings-server</artifactId>
  <name>JULIE Lab Embeddings Server</name>
  <description>This project offers a Java server that wraps a Word2Vec embedding file. The server can then be queried for embeddings via a simple HTTP API. A Java client is available via the julielab-embeddings-client project. For other languages, the server protocol must be implemented which is a simple binary format as described in the README.md file.</description>
  <url>https://github.com/JULIELab/julielab-embeddings-management/tree/master/julielab-embeddings-server</url>
  <profiles>
    <profile>
      <id>shaded-jar</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>shade</goal>
                </goals>
                <configuration>
                  <transformers>
                    <transformer>
                      <mainClass>de.julielab.ml.embeddings.server.WordEmbeddingServer</mainClass>
                    </transformer>
                    <transformer>
                      <resource>META-INF/services/de.julielab.ml.embeddings.spi.EmbeddingsReader</resource>
                    </transformer>
                  </transformers>
                  <filters>
                    <filter>
                      <artifact>*:*</artifact>
                      <excludes>
                        <exclude>META-INF/*.SF</exclude>
                        <exclude>META-INF/*.DSA</exclude>
                        <exclude>META-INF/*.RSA</exclude>
                      </excludes>
                    </filter>
                  </filters>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>

