<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
  <id>ejb-app</id>
  <formats>
    <format>war</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <files>
    <file>
      <source>${project.basedir}/src/test/resources/META-INF/persistence.xml</source>
      <outputDirectory>WEB-INF/classes/META-INF</outputDirectory>
    </file>
    <file>
      <source>${project.basedir}/src/test/resources/META-INF/beans.xml</source>
      <outputDirectory>WEB-INF/classes/META-INF</outputDirectory>
    </file>
    <file>
      <source>${project.basedir}/src/test/resources/jbpm-executor.properties</source>
      <outputDirectory>WEB-INF/classes</outputDirectory>
    </file>
  </files>
  <dependencySets>
    <dependencySet>
      <outputDirectory>WEB-INF/lib</outputDirectory>
      <useProjectArtifact>true</useProjectArtifact>
      <unpack>false</unpack>
      <scope>runtime</scope>
    </dependencySet>
    
    <!-- added only for the purpose of tests for remote client invocation -->
    <dependencySet>
      <includes>
        <include>org.jbpm:jbpm-kie-services:test-jar</include>
        <include>org.jbpm:jbpm-workitems:jar</include>
      </includes>
      <unpack>true</unpack>
      <scope>test</scope>
      <outputDirectory>WEB-INF/classes</outputDirectory>
      <unpackOptions>
        <includes>
          <include>org/jbpm/kie/services/helper/*</include>
        </includes>
      </unpackOptions>
      <useTransitiveFiltering>true</useTransitiveFiltering>
    </dependencySet>
  </dependencySets>
</assembly>