<?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>7</version>
    <relativePath />
  </parent>
  <groupId>org.exoplatform.commons</groupId>
  <artifactId>exo.platform.commons</artifactId>
  <version>1.1.13</version>
  <packaging>pom</packaging>
  <name>eXo Commons</name>
  <scm>
    <connection>scm:git:git://github.com/exoplatform/commons.git</connection>
    <developerConnection>scm:git:git@github.com:exoplatform/commons.git</developerConnection>
    <url>http://fisheye.exoplatform.org/browse/projects/commons</url>
  </scm>
  <properties>
    <org.exoplatform.kernel.version>2.3.12-GA</org.exoplatform.kernel.version>
    <org.exoplatform.core.version>2.4.12-GA</org.exoplatform.core.version>
    <org.exoplatform.ws.version>2.2.12-GA</org.exoplatform.ws.version>
    <org.exoplatform.jcr.version>1.14.12-GA</org.exoplatform.jcr.version>
    <org.exoplatform.portal.version>3.2.9-PLF</org.exoplatform.portal.version>
    <picocontainer.version>1.1</picocontainer.version>
    <javax.jcr.api.version>1.0</javax.jcr.api.version>
    <testng.version>5.10</testng.version>
    <junit.version>3.8.1</junit.version>
    <mockito.version>1.8.1</mockito.version>
    <javax.servlet.servlet-api.version>2.5</javax.servlet.servlet-api.version>
    <org.slf4j.slf4j-simple.version>1.5.6</org.slf4j.slf4j-simple.version>
	<org.hsqldb.version>2.0.0</org.hsqldb.version>
	<version.release.plugin>2.2.1</version.release.plugin>
	<version.buildnumber.plugin>1.1</version.buildnumber.plugin>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>javax.jcr</groupId>
        <artifactId>jcr</artifactId>
        <version>${javax.jcr.api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.jcr</groupId>
        <artifactId>exo.jcr.component.core</artifactId>
        <version>${org.exoplatform.jcr.version}</version>
      </dependency>
      <dependency>
        <groupId>picocontainer</groupId>
        <artifactId>picocontainer</artifactId>
        <version>${picocontainer.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.resources</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.exoplatform.portal</groupId>
        <artifactId>exo.portal.component.web.api</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>${testng.version}</version>
        <classifier>jdk15</classifier>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
      </dependency>
      <dependency>
        <groupId>org.hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <version>${org.hsqldb.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.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.portal</groupId>
        <artifactId>exo.portal.webui.core</artifactId>
        <version>${org.exoplatform.portal.version}</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>${javax.servlet.servlet-api.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>${mockito.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <modules>
    <module>comet</module>
    <module>component/common</module>
    <module>component/product</module>
    <module>component/upgrade</module>
    <module>testing</module>
    <module>webui/ext</module>
    <module>webui/component</module>
    <module>webui/resources</module>
    <module>gifbackport</module>
    <module>fck</module>
    <module>extension</module>
  </modules>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>          
          <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>
</project>
