<?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>org.jbpm</groupId>
    <artifactId>jbpm</artifactId>
    <version>5.2.1.Final</version>
  </parent>

  <artifactId>jbpm-distribution</artifactId>
  <packaging>pom</packaging>

  <name>jBPM distribution</name>
  <description>
    Builds the download zip of jBPM.
  </description>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
          <version>2.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <finalName>jbpm-${project.version}</finalName>
          <descriptors>
            <descriptor>src/main/assembly/pre-bin.xml</descriptor>
            <descriptor>src/main/assembly/bin.xml</descriptor>
            <descriptor>src/main/assembly/src.xml</descriptor>
            <descriptor>src/main/assembly/gwt-console.xml</descriptor>
            <descriptor>src/main/assembly/installer.xml</descriptor>
            <descriptor>src/main/assembly/docs-build.xml</descriptor>
            <descriptor>src/main/assembly/docs.xml</descriptor>
            <descriptor>src/main/assembly/examples.xml</descriptor>
          </descriptors>
          <!--<appendAssemblyId>false</appendAssemblyId>-->
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <!-- Binaries and sources -->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-flow</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow-builder</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-flow-builder</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-persistence-jpa</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-persistence-jpa</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-bpmn2</artifactId>
    </dependency>
    <dependency>
        <groupId>org.jbpm</groupId>
        <artifactId>jbpm-test</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-bpmn2</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-bam</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-bam</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-human-task</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-workitems</artifactId>
    </dependency>
    <!--<dependency>-->
      <!--<groupId>org.jbpm</groupId>-->
      <!--<artifactId>jbpm-workitems</artifactId>-->
      <!--<classifier>sources</classifier>-->
    <!--</dependency>-->

    <!-- The old assembly also included this optional dependency -->
    <dependency>
      <groupId>com.thoughtworks.xstream</groupId>
      <artifactId>xstream</artifactId>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
    </dependency>
    <dependency>
      <groupId>org.codehaus.btm</groupId>
      <artifactId>btm</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>

    <!-- Javadocs and documentation -->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-docs</artifactId>
      <type>jdocbook</type>
    </dependency>
  </dependencies>

</project>
