<?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.exoplatform.ecms</groupId>
    <artifactId>exo-ecms-packaging-workflow</artifactId>
    <version>2.3.1</version>
  </parent>
  <artifactId>exo-ecms-packaging-workflow-webapp</artifactId>
  <packaging>war</packaging>
  <name>eXo WORKFLOW Extension configuration war</name>
  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-content</artifactId>
      <version>${project.version}</version>
      <scope>provided</scope>
    </dependency>
		<dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-payraise</artifactId>
      <version>${project.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-holiday</artifactId>
      <version>${project.version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webResources>
            <resource>
              <directory>src/main/webapp</directory>
              <!-- enable filtering -->
              <filtering>true</filtering>
            </resource>
          </webResources>
        </configuration>          
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-content</artifactId>
                  <version>${project.version}</version>
                </artifactItem>
								<artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-payraise</artifactId>
                  <version>${project.version}</version>
                </artifactItem>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>exo-ecms-ext-workflow-bp-${workflowEngine}-holiday</artifactId>
                  <version>${project.version}</version>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/conf/bp</outputDirectory>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
