<?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-ecmdemo</artifactId>
    <version>2.3.1</version>
  </parent>
  <artifactId>exo-ecms-packaging-ecmdemo-ear</artifactId>
  <packaging>ear</packaging>
  <name>eXo WCM Demo EAR for GateIn</name>
  <dependencies>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-packaging-ecmdemo-config</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-packaging-ecmdemo-webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-packaging-ecmdemo-rest-webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
  </dependencies>
  <build>
    <finalName>gatein-ecmdemo-portal-${project.version}</finalName>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <displayName>ecmdemo</displayName>
          <defaultLibBundleDir>lib</defaultLibBundleDir>
          <modules>
            <jarModule>
              <groupId>org.exoplatform.ecms</groupId>
              <artifactId>exo-ecms-packaging-ecmdemo-config</artifactId>
              <includeInApplicationXml>true</includeInApplicationXml>
            </jarModule>
            <webModule>
              <groupId>org.exoplatform.ecms</groupId>
              <artifactId>exo-ecms-packaging-ecmdemo-webapp</artifactId>
              <contextRoot>ecmdemo</contextRoot>
              <bundleFileName>ecmdemo.war</bundleFileName>
            </webModule>
            <webModule>
              <groupId>org.exoplatform.ecms</groupId>
              <artifactId>exo-ecms-packaging-ecmdemo-rest-webapp</artifactId>
              <contextRoot>rest-ecmdemo</contextRoot>
              <bundleFileName>rest-ecmdemo.war</bundleFileName>
            </webModule>
          </modules>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
