<?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</groupId>
    <artifactId>exo.parent</artifactId>
    <version>8.1</version>
  </parent>
  <groupId>org.exoplatform.ecms</groupId>
  <artifactId>exo-ecms</artifactId>
  <version>2.3.1</version>
  <packaging>pom</packaging>
  <name>eXo ECM Suite</name>
  <description>eXo Entreprise Content Management Suite</description>
  <scm>
    <connection>scm:svn:http://svn.exoplatform.org/projects/ecms/tags/2.3.1</connection>
    <developerConnection>scm:svn:http://svn.exoplatform.org/projects/ecms/tags/2.3.1</developerConnection>
    <url>http://fisheye.exoplatform.org/browse/ecms/tags/2.3.1</url>
  </scm>
  <issueManagement>
    <system>jira</system>
    <url>http://jira.exoplatform.org/browse/ECMS</url>
  </issueManagement>
  <ciManagement>
    <system>hudson</system>
    <url>http://builder.exoplatform.org/hudson/job/ecms-trunk-ci/</url>
  </ciManagement>
  <properties>
    <!-- Dependencies versions -->
    <org.exoplatform.kernel.version>2.3.1-GA</org.exoplatform.kernel.version>
    <org.exoplatform.core.version>2.4.1-GA</org.exoplatform.core.version>
    <org.exoplatform.ws.version>2.2.1-GA</org.exoplatform.ws.version>
    <org.exoplatform.jcr.version>1.14.1-GA</org.exoplatform.jcr.version>
    <org.exoplatform.jcr-services.version>1.14.1-GA</org.exoplatform.jcr-services.version>
    <org.exoplatform.portal.version>3.2.0-PLF-Beta6</org.exoplatform.portal.version>
    <exo.tool.framework.junit.version>1.2.0</exo.tool.framework.junit.version>
    <org.exoplatform.commons.version>1.1.2</org.exoplatform.commons.version>
    <org.exoplatform.tool.version>1.0.0</org.exoplatform.tool.version>
    <chromattic.version>1.1.0</chromattic.version>
    <org.xcmis.version>1.2.2</org.xcmis.version>
    <abdera.version>0.4.0-incubating</abdera.version>
    <lucene-regex.version>2.4.1</lucene-regex.version>
    <axiom.version>1.2.5</axiom.version>
    <jaxen.version>1.1.1</jaxen.version>
    <xml.parser.version>3.1</xml.parser.version>
    <!-- workflow implementations -->
    <org.jbpm.jbpm3>3.2.8</org.jbpm.jbpm3>
    <bonita.version>4.1</bonita.version>
    <!-- Default wkf impl to use -->
    <workflowEngine>jbpm</workflowEngine>
    <!-- 3rd parties -->
    <c3p0.version>0.9.1.2</c3p0.version>
    <org.gatein.wci.version>2.0.2-GA</org.gatein.wci.version>
    <org.javassist.version>3.14.0-GA</org.javassist.version>
    <commons-collections.version>3.2.1</commons-collections.version>
    <commons-pool.version>1.5.5</commons-pool.version>
    <html-parser.version>1.6</html-parser.version>
    <stax.version>1.0</stax.version>
    <org.jvnet.jaxb2.maven2.version>0.1</org.jvnet.jaxb2.maven2.version>
    <cglib.version>2.2</cglib.version>
    <antlr.version>2.7.6rc1</antlr.version>
    <org.antlr.version>3.1.3</org.antlr.version>
    <commons-dbcp.version>1.4</commons-dbcp.version>
    <jcr.version>1.0</jcr.version>
    <org.jsecurity.version>0.9.0</org.jsecurity.version>
    <javax.transaction.version>1.0.1B</javax.transaction.version>
    <net.oauth.version>20080621</net.oauth.version>
    <org.gatein.pc.version>2.2.0-GA</org.gatein.pc.version>
    <commons-lang.version>2.6</commons-lang.version>
    <org.gatein.shindig.version>1.0-r790473-Patch05</org.gatein.shindig.version>
    <javax.mail.version>1.4.4</javax.mail.version>
    <javax.servlet.servlet-api.version>2.5</javax.servlet.servlet-api.version>
    <javax.portlet.portlet-api.version>2.0</javax.portlet.portlet-api.version>
    <javax.mail.mail.version>1.4.1</javax.mail.mail.version>
    <javax.xml.bind.jaxb-api.version>2.1</javax.xml.bind.jaxb-api.version>
    <javax.ws.rs.jsr311-api.version>1.0</javax.ws.rs.jsr311-api.version>
    <javax.jcr.api.version>1.0</javax.jcr.api.version>
    <org.slf4j.slf4j-simple.version>1.5.8</org.slf4j.slf4j-simple.version>
    <org.slf4j.version>1.5.8</org.slf4j.version>
    <xml-apis.version>1.3.04</xml-apis.version>
    <quartz.version>1.5.2</quartz.version>
    <rome.version>1.0</rome.version>
    <org.apache.httpcomponents.version>4.0.1</org.apache.httpcomponents.version>
    <com.google.guava.version>r09</com.google.guava.version>
    <commons-codec.version>1.4</commons-codec.version>
    <picocontainer.version>1.1</picocontainer.version>
    <commons-io.version>1.4</commons-io.version>
    <junit.version>3.8.2</junit.version>
    <xpp3.version>1.1.4c</xpp3.version>
    <mockito.version>1.8.1</mockito.version>
    <icu4j.version>3.8</icu4j.version>
    <icepdf.version>4.0.1</icepdf.version>
    <jodconverter.version>2.2.2</jodconverter.version>
    <openoffice.version>3.0.1</openoffice.version>
    <itunes.podcast.version>0.2</itunes.podcast.version>
    <org.hsqldb.version>2.0.0</org.hsqldb.version>
    <org.apache.pdfbox.version>1.4.0</org.apache.pdfbox.version>
    <!-- ************** -->
    <!-- Build settings -->
    <!-- ************** -->
    <exo.product.name>exo-wcm</exo.product.name>
    <exo.product.specification>2.0</exo.product.specification>

    <!-- exopackage -->
    <org.exoplatform.exopackage.version>1.1.4</org.exoplatform.exopackage.version>
    <!-- We enforce Java 6 to build to use Chromattic and APT -->
    <jdk.min.version>1.6</jdk.min.version>
    <!-- maven-release-plugin -->
    <preparationGoals>clean install</preparationGoals>
    <arguments>-Dgatein.working.dir=target</arguments>
    <!-- Required to add generate sources bundle -->
    <version.assembly.plugin>2.2</version.assembly.plugin>
  </properties>
  <dependencyManagement>
    <!-- TODO : import dependencyManagement of platform, instead of redefining those properties -->
    <dependencies>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.container</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.commons</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.component.common</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>exo.jcr.component.core</artifactId>
        <version>${org.exoplatform.jcr.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.kernel</groupId>
        <artifactId>exo.kernel.component.cache</artifactId>
        <version>${org.exoplatform.kernel.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>exo.jcr.component.ext</artifactId>
        <version>${org.exoplatform.jcr.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ws</groupId>
        <artifactId>exo.ws.rest.core</artifactId>
        <version>${org.exoplatform.ws.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.ws</groupId>
        <artifactId>exo.ws.frameworks.json</artifactId>
        <version>${org.exoplatform.ws.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.core</groupId>
        <artifactId>exo.core.component.organization.api</artifactId>
        <version>${org.exoplatform.core.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.core</groupId>
        <artifactId>exo.core.component.security.core</artifactId>
        <version>${org.exoplatform.core.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.portal</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.scripting</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.web</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.common</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.eXo</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.core</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.webui.portal</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.tool</groupId>
        <artifactId>exo.tool.framework.junit</artifactId>
        <version>${exo.tool.framework.junit.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons-lang.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>${javax.servlet.servlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.portlet</groupId>
        <artifactId>portlet-api</artifactId>
        <version>${javax.portlet.portlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>${javax.mail.mail.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>${javax.xml.bind.jaxb-api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.jcr</groupId>
        <artifactId>jcr</artifactId>
        <version>${javax.jcr.api.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>${javax.ws.rs.jsr311-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>${org.slf4j.slf4j-simple.version}</version>
      </dependency>
      <dependency>
        <groupId>xml-apis</groupId>
        <artifactId>xml-apis</artifactId>
        <version>${xml-apis.version}</version>
      </dependency>
      <dependency>
        <groupId>quartz</groupId>
        <artifactId>quartz</artifactId>
        <version>${quartz.version}</version>
      </dependency>
      <dependency>
        <groupId>rome</groupId>
        <artifactId>rome</artifactId>
        <version>${rome.version}</version>
      </dependency>
      <dependency>
        <groupId>picocontainer</groupId>
        <artifactId>picocontainer</artifactId>
        <version>${picocontainer.version}</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io.version}</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>xpp3</groupId>
        <artifactId>xpp3</artifactId>
        <version>${xpp3.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>${mockito.version}</version>
      </dependency>
     
    </dependencies>
  </dependencyManagement>
  <build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/test/java</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
          <include>**/*.jstmpl</include>
        </includes>
      </testResource>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <systemProperties>
              <property>
                <name>org.apache.commons.logging.Log</name>
                <value>org.apache.commons.logging.impl.SimpleLog</value>
              </property>
              <property>
                <name>org.apache.commons.logging.simplelog.defaultlog</name>
                <value>info</value>
              </property>
              <property>
                <name>org.apache.commons.logging.simplelog.log.[eXo]</name>
                <value>debug</value>
              </property>
              <property>
                <name>org.apache.commons.logging.simplelog.log.net.hibernate</name>
                <value>warn</value>
              </property>
              <property>
                <name>java.naming.factory.initial</name>
                <value>org.exoplatform.services.naming.SimpleContextFactory</value>
              </property>
            </systemProperties>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <!-- To be removed : http://jira.exoplatform.org/browse/ECMS-120 -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>compile</id>
            <phase>compile</phase>
            <configuration>
              <tasks>
                <copy failonerror="false" todir="${project.build.directory}/${project.build.finalName}/WEB-INF/classes">
                  <fileset dir="${basedir}/src/main/webapp/WEB-INF/classes">
                    <include name="**/*_en.properties" />
                  </fileset>
                  <globmapper from="*_en.properties" to="*.properties" />
                </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>bonita</id>
      <properties>
        <workflowEngine>bonita</workflowEngine>
      </properties>
    </profile>
    <profile>
      <id>jbpm</id>
      <properties>
        <workflowEngine>jbpm</workflowEngine>
      </properties>
    </profile>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <!-- Create a source-release artifact that contains the fully buildable 
               project directory source structure. This is the artifact which is 
               the official subject of any release vote. -->
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <dependencies>
              <dependency>
                <groupId>org.apache.apache.resources</groupId>
                <artifactId>apache-source-release-assembly-descriptor</artifactId>
                <version>1.0.2</version>
              </dependency>
            </dependencies>
            <executions>
              <execution>
                <id>source-release-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
                  <descriptorRefs>
                    <descriptorRef>source-release</descriptorRef>
                  </descriptorRefs>
                  <tarLongFileFormat>gnu</tarLongFileFormat>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <modules>
    <module>core</module>
    <module>apps</module>
    <module>ext</module>
    <module>delivery</module>
    <module>packaging</module>
    <module>examples</module>
    <module>docs</module>
    <module>testsuite</module>
    <module>upgrade</module>
  </modules>
</project>
