<?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>presto-root</artifactId>
    <groupId>com.facebook.presto</groupId>
    <version>0.293</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>presto-testing-server-launcher</artifactId>
  <name>presto-testing-server-launcher</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>executable</shadedClassifierName>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Main-Class>${main-class}</Main-Class>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.skife.maven</groupId>
        <artifactId>really-executable-jar-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>really-executable-jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <flags>-Xmx1G</flags>
          <classifier>executable</classifier>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <properties>
    <air.main.basedir>${project.parent.basedir}</air.main.basedir>
    <main-class>com.facebook.presto.server.testing.TestingPrestoServerLauncher</main-class>
  </properties>
</project>
