<?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.platform</groupId>
    <artifactId>exo.platform.packaging</artifactId>
    <version>3.0.10</version>
  </parent>
  <artifactId>exo.platform.packaging.assembly</artifactId>
  <packaging>pom</packaging>
  <name>eXo Platform - Packaging Assembly</name>
  <dependencies>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-upgrade</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.tool</groupId>
      <artifactId>exopackage</artifactId>
      <version>${org.exoplatform.exopackage.version}</version>
      <type>zip</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>kernel.packaging.module</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.core</groupId>
      <artifactId>core.packaging.module</artifactId>
      <version>${org.exoplatform.core.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>ws.packaging.module</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>jcr.packaging.module</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>portal.packaging.module</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>js</type>
    </dependency>
    <!-- PLATFORM -->
    <dependency>
       <groupId>org.exoplatform.platform</groupId>
       <artifactId>exo.platform.server.tomcat.patch</artifactId>
       <version>${project.version}</version>
       <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>platform.packaging.module</artifactId>
      <version>${project.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.webui.components</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>platform.packaging.product</artifactId>
      <version>${project.version}</version>
      <type>js</type>
    </dependency>
    <!-- KS -->
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>ks.packaging.module</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>portal.packaging.product</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>js</type>
    </dependency>
    <!-- CS -->
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>cs.packaging.module</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>cs.packaging.product</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>js</type>
    </dependency>
    <!-- SOCIAL -->
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>social.packaging.module</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>social.packaging.product</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>js</type>
    </dependency>
    <!-- ECMS -->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>workflow.packaging.module</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>dms.packaging.module</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>wcm.packaging.module</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>js</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>wcm.packaging.product</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>js</type>
    </dependency>
    <!--  -->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-delivery-wkf-wcm</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-delivery-wcm-assembly</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.packaging.assembly</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.packaging.assembly</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.packaging.pkg</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>pom</type>
    </dependency>
    <!-- workflow dependencies -->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-facade-jbpm</artifactId>
      <!-- TODO should use variable instead of jbpm -->
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-jbpm-content</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-content-webui</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-content-plugin</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-content-publication</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <!-- main portal container config -->
    <!--dependency>
		    <groupId>org.exoplatform.platform</groupId>
		    <artifactId>exo.platform.extension</artifactId>
		    <version>${project.version}</version>
		    <type>jar</type>
		  </dependency-->
    <!-- ////////////// Deploy dependencies ////////////// -->
    <!-- IDE dependencies -->
    <dependency>
      <groupId>org.exoplatform.gwt</groupId>
      <artifactId>exo-gwtframework-smartgwt</artifactId>
      <version>${org.exoplatform.gwtframework.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ide</groupId>
      <artifactId>exo-ide-module-gadget-server</artifactId>
      <version>${org.exoplatform.ide.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ide</groupId>
      <artifactId>exo-ide-module-netvibes-server</artifactId>
      <version>${org.exoplatform.ide.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ide</groupId>
      <artifactId>exo-ide-module-groovy-server</artifactId>
      <version>${org.exoplatform.ide.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ide</groupId>
      <artifactId>exo-ide-server</artifactId>
      <version>${org.exoplatform.ide.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ide</groupId>
      <artifactId>exo-ide-client</artifactId>
      <version>${org.exoplatform.ide.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.core</groupId>
      <artifactId>exo.core.component.script.groovy</artifactId>
      <version>${org.exoplatform.core.version}</version>
      <type>jar</type>
    </dependency>
    <!-- xCMIS dependencies -->
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-renditions</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-restatom</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-search-model</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-search-parser-cmis</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-search-service</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.xcmis</groupId>
      <artifactId>xcmis-spi</artifactId>
      <version>${org.xcmis.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-xcmis-sp</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.abdera</groupId>
      <artifactId>abdera-client</artifactId>
      <version>0.4.0-incubating</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.abdera</groupId>
      <artifactId>abdera-core</artifactId>
      <version>0.4.0-incubating</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.abdera</groupId>
      <artifactId>abdera-i18n</artifactId>
      <version>0.4.0-incubating</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.abdera</groupId>
      <artifactId>abdera-parser</artifactId>
      <version>0.4.0-incubating</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.abdera</groupId>
      <artifactId>abdera-server</artifactId>
      <version>0.4.0-incubating</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>antlr-runtime</artifactId>
      <version>3.1.3</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.ws.commons.axiom</groupId>
      <artifactId>axiom-api</artifactId>
      <version>1.2.5</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.ws.commons.axiom</groupId>
      <artifactId>axiom-impl</artifactId>
      <version>1.2.5</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>jaxen</groupId>
      <artifactId>jaxen</artifactId>
      <version>1.1.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.apache.lucene</groupId>
      <artifactId>lucene-regex</artifactId>
      <version>2.4.1</version>
      <type>jar</type>
    </dependency>
    <!-- Crash -->
    <dependency>
      <groupId>org.crsh</groupId>
      <artifactId>crsh.core</artifactId>
      <version>${org.crsh.version}</version>
      <type>war</type>
    </dependency>
    <!-- MISSING DEPENDENCIES -->
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.webapp.portlet</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.commons</groupId>
      <artifactId>exo.platform.commons.fck</artifactId>
      <version>${org.exoplatform.commons.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.webapp.resources</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.commons</groupId>
      <artifactId>exo.platform.commons.comet.webapp</artifactId>
      <version>${org.exoplatform.commons.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.ext.social-integration</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.commons</groupId>
      <artifactId>exo.platform.commons.comet.service</artifactId>
      <version>${org.exoplatform.commons.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.ext.social-integration</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.webapp.opensocial</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.extras.document-composer-plugin</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.extras.link-composer-plugin</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.component.common</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.starter.war</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-connector</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.1.0-CR01-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-search</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.1.0-CR01-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-webui</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.1.0-CR01-->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-jdk14</artifactId>
      <version>${org.slf4j.version}</version>
      <type>jar</type>
    </dependency>      
    <!-- 1.5.6-->
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.component.common</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.component.ftp</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>exo.kernel.component.remote</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>exo.kernel.component.command</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.gatein.wci</groupId>
      <artifactId>wci-exo</artifactId>
      <version>${org.gatein.wci.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>${commons-digester.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.7-->
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.component.service</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.web.portal</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-newsletter-portlet</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.portlet.web</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.portlet.exoadmin</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-portlet-presentation</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.eXoGadgets</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>exo.ws.rest.core</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-resources-static</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-webui-administration</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>bsh</groupId>
      <artifactId>bsh</artifactId>
      <version>${bsh.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.0b1-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-resources</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.web.webservice</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>net.oauth</groupId>
      <artifactId>core</artifactId>
      <version>${net.oauth.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib</artifactId>
      <version>${cglib.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>commons-pool</groupId>
      <artifactId>commons-pool</artifactId>
      <version>${commons-pool.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-webui</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.reflext</groupId>
      <artifactId>reflext.jlr</artifactId>
      <version>${org.reflext.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.component.bbcode</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>exo.ws.commons</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>exo.kernel.component.ext.cache.impl.jboss.v3</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.mail.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>${antlr.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.7.6rc1-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-viewer</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-jbpm-holiday</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.component.core</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-gadget-publication</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>${commons-dbcp.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>exo.ws.frameworks.servlet</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.organization.client.openfire</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-bp-jbpm-payraise</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.forum.service</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-portlet-administration</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.chat.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-newsletter-services</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.portlet.dashboard</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.component.webdav</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.faq.webapp</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.poll.webapp</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.faq.service</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.content.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.contact.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-workflow-portlet-administration</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-resources-dms</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-webui-explorer</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>jcr</groupId>
      <artifactId>jcr</artifactId>
      <version>${jcr.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0-->
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.forum.webapp</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>war</type>
    </dependency>
    
  <dependency>
    <groupId>org.exoplatform.commons</groupId>
    <artifactId>exo.platform.commons.webui.ext</artifactId>
    <version>${org.exoplatform.commons.version}</version>
   <scope>provided</scope>
  </dependency>

    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-resources-wcm</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.component.management</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>exo.kernel.component.cache</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.common</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-portlet-search</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-publication-plugins</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.component.ext</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.extension.webapp</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.webui.dashboard</artifactId><!-- changed in 3.2 -->
      <version>${org.exoplatform.portal.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-formgenerator-portlet</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.web.rest</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.extras.feedmash</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.gadgets-server</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.component.rendering</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-apps-portlet-explorer</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>stax</groupId>
      <artifactId>stax-api</artifactId>
      <version>${stax.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0-->
    <dependency>
      <groupId>org.exoplatform.tool</groupId>
      <artifactId>exo.tool.webunit</artifactId>
      <version>${org.exoplatform.tool.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0.0-->
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.framework.command</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>javassist</groupId>
      <artifactId>javassist</artifactId>
      <version>${javassist.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 3.4.GA-->
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.extension.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>findbugs</groupId>
      <artifactId>annotations</artifactId>
      <version>${findbugs.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0.0-->
    <dependency>
      <groupId>html-parser</groupId>
      <artifactId>html-parser</artifactId>
      <version>${html-parser.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.6-->
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.content.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.contact.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.organization.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.chatbar.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>ical4j</groupId>
      <artifactId>ical4j</artifactId>
      <version>${ical4j.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 0.9.20-->
    <dependency>
      <groupId>org.jvnet.jaxb2.maven2</groupId>
      <artifactId>maven-jaxb2-plugin</artifactId>
      <version>${org.jvnet.jaxb2.maven2.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 0.1-->
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.calendar.webapp</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.extension.war</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>${commons-collections.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 3.2.1-->
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>exo.ws.frameworks.json</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.jsecurity</groupId>
      <artifactId>jsecurity</artifactId>
      <version>${org.jsecurity.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 0.9.0-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-packaging-workflow-webapp</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.web.csResources</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-authoring-services</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>xml-apis</groupId>
      <artifactId>xml-apis</artifactId>
      <version>${xml-apis.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.3.04-->
    <dependency>
      <groupId>org.exoplatform.ws</groupId>
      <artifactId>exo.ws.rest.ext</artifactId>
      <version>${org.exoplatform.ws.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.chat.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>gatein.portal.component.wsrp</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.chromattic</groupId>
      <artifactId>chromattic.core</artifactId>
      <version>${org.chromattic.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0.3-->
    <dependency>
      <groupId>org.exoplatform.portal</groupId>
      <artifactId>exo.portal.web.eXoResources</artifactId>
      <version>${org.exoplatform.portal.version}</version>
      <type>war</type>
    </dependency>
    <!-- 3.1.0-GA-->
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.eXoApplication.poll.service</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.gatein.pc</groupId>
      <artifactId>pc-controller</artifactId>
      <version>${org.gatein.pc.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-deprecated-portlet-browsecontent</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.kernel</groupId>
      <artifactId>exo.kernel.component.common</artifactId>
      <version>${org.exoplatform.kernel.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ks</groupId>
      <artifactId>exo.ks.web.ksResources</artifactId>
      <version>${org.exoplatform.ks.version}</version>
      <type>war</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.jcr</groupId>
      <artifactId>exo.jcr.framework.web</artifactId>
      <version>${org.exoplatform.jcr.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.jboss</groupId>
      <artifactId>jboss-common-core</artifactId>
      <version>${org.jboss.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 2.2.9.GA-->
    <dependency>
      <groupId>org.exoplatform.social</groupId>
      <artifactId>exo.social.component.opensocial</artifactId>
      <version>${org.exoplatform.social.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.gatein.shindig</groupId>
      <artifactId>shindig-social-api</artifactId>
      <version>${org.gatein.shindig.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.0-r790473-Patch02-->
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>${asm.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.5.3-->
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-authoring-webui</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>jar</type>
    </dependency>
    
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-ext-authoring-apps</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.component.common</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.office.config</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.office.webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.sample.acme-website.webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.sample.default-website.webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.office.officeResources</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.extension.portlets.platformNavigation</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.extension.config</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.sample.acme-website.config</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.sample.default-website.config</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.platform</groupId>
      <artifactId>exo.platform.extension.webapp</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.calendar.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    <!-- 1.1.1-->
    <dependency>
      <groupId>org.exoplatform.cs</groupId>
      <artifactId>exo.cs.eXoApplication.mail.service</artifactId>
      <version>${org.exoplatform.cs.version}</version>
      <type>jar</type>
    </dependency>
    <dependency>
      <groupId>org.jcrom</groupId>
      <artifactId>jcrom</artifactId>
      <version>${org.jcrom.version}</version>
      <type>jar</type>
    </dependency>
    <dependency><groupId>org.exoplatform.ecms</groupId><artifactId>exo-ecms-core-parser</artifactId><version>${org.exoplatform.ecms.version}</version><type>jar</type></dependency>
    <dependency>
      <groupId>org.exoplatform.ecms</groupId>
      <artifactId>exo-ecms-core-webapp</artifactId>
      <version>${org.exoplatform.ecms.version}</version>
      <type>war</type>
    </dependency>
<!-- lead capture filter -->
    <dependency>
      <groupId>org.exoplatform.leadcapture</groupId>
      <artifactId>exo.leadcapture.web.client.application</artifactId>
      <version>${org.exoplatform.leadcapture.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.exoplatform.leadcapture</groupId>
      <artifactId>exo.leadcapture.client</artifactId>
      <version>${org.exoplatform.leadcapture.version}</version>
    </dependency>
  </dependencies>
  <!-- 1.1.1-->
  
  <build>
    <finalName>Platform-${project.version}</finalName>
    <plugins>
      <!-- check-out exobuild -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack-dependencies</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <overWriteSnapshots>true</overWriteSnapshots>
              <artifactItems>
                <artifactItem>
                  <groupId>org.exoplatform.tool</groupId>
                  <artifactId>exopackage</artifactId>
                  <type>zip</type>
                  <outputDirectory>target/exopackage</outputDirectory>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
          <execution>
            <id>copy-dependencies</id>
            <phase>compile</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <includeTypes>js</includeTypes>
              <stripVersion>true</stripVersion>
              <outputDirectory>${project.build.directory}/exopackage-conf</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- Ensure your environment is correctly setup -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>check-environment-ready</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireProperty>
                  <property>exo.projects.directory.dependencies</property>
                  <message>You must define the property exo.projects.directory.dependencies to
                                    give the path to the directory where you store your applications servers</message>
                </requireProperty>
                <requireProperty>
                  <property>exo.projects.app.tomcat.version</property>
                  <message>You must define the property exo.projects.app.tomcat.version to
                                    give the name of the directory where is stored tomcat</message>
                </requireProperty>
                <requireFilesExist>
                  <files>
                    <file>${exo.projects.directory.dependencies}/${exo.projects.app.tomcat.version}/</file>
                  </files>
                  <message>The following Tomcat directory doesn't exist :
                                    ${exo.projects.directory.dependencies}/${exo.projects.app.tomcat.version}</message>
                </requireFilesExist>
              </rules>
              <fail>true</fail>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- run eXoBuild -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>01-tomcat-exopackage</id><!-- create base tomcat -->
            <phase>prepare-package</phase>
            <configuration>
              <executable>java</executable>
              <workingDirectory>${basedir}</workingDirectory>
              <arguments>
                <argument>-Dexo.package.home=${basedir}/target/exopackage</argument>
                <argument>-Dexo.current.dir=${basedir}</argument>
                <argument>-Dexo.base.dir=${exo.projects.directory.base}</argument>
                <argument>-Dexo.conf.dir=${basedir}/target/exopackage-conf</argument>
                <argument>-Dexo.working.dir=${basedir}/target</argument>
                <argument>-Dexo.dep.dir=${exo.projects.directory.dependencies}</argument>
                <argument>-Dexo.m2.repos=file:${settings.localRepository}</argument>
                <argument>-Dclean.server=${exo.projects.app.tomcat.version}</argument>
                <argument>-Dexo.m2.home=${maven.home}</argument>
                <argument>-Xshare:auto</argument>
                <argument>-Xms128m</argument>
                <argument>-Xmx1220m</argument>
                <argument>-XX:MaxPermSize=128M</argument>
                <argument>-classpath</argument>
                <argument>${basedir}/target/exopackage/lib/js.jar</argument>
                <argument>org.mozilla.javascript.tools.shell.Main</argument>
                <argument>${basedir}/target/exopackage/javascript/eXo/eXo.js</argument>
                <argument>exobuild</argument>
                <argument>--product=platform</argument>
                <argument>--deploy=tomcat</argument>
                <argument>--enable-workflow=${exo.workflow.engine}</argument>
              </arguments>
            </configuration>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
<!--
 |
 | The distrib profile is called by hudson to generate the official packages:
 |  - tomcat
 |  - chatserver
 |
 -->
    <profile>
      <id>distrib</id>
      <build>
        <plugins>
          <!-- create zip archives -->
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <id>assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>src/main/assembly/tomcat-archive.xml</descriptor>
                    <descriptor>src/main/assembly/chatserver-archive.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
