<?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">

   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>io.escalante</groupId>
      <artifactId>escalante</artifactId>
      <version>0.3.0</version>
      <relativePath>../pom.xml</relativePath>
   </parent>

   <groupId>io.escalante</groupId>
   <artifactId>escalante-dist</artifactId>
   <version>0.3.0</version>

   <name>Escalante Distribution</name>

   <packaging>pom</packaging>

   <profiles>
      <profile>
         <id>release</id>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-assembly-plugin</artifactId>
                  <executions>
                     <execution>
                        <id>assemble</id>
                        <phase>package</phase>
                        <goals><goal>single</goal></goals>
                        <configuration>
                           <descriptors>
                              <descriptor>assembly.xml</descriptor>
                           </descriptors>
                           <finalName>escalante-${project.version}</finalName>
                           <appendAssemblyId>false</appendAssemblyId>
                           <outputDirectory>target/release</outputDirectory>
                           <workDirectory>target</workDirectory>
                           <tarLongFileMode>gnu</tarLongFileMode>
                        </configuration>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>

</project>