<!--

    Copyright (C) 2009 eXo Platform SAS.

    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 2.1 of
    the License, or (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<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>foundation-parent</artifactId>
      <version>9</version>
      <relativePath />
   </parent>

   <groupId>org.exoplatform.core</groupId>
   <artifactId>core-parent</artifactId>
   <version>2.4.12-GA</version>
   <packaging>pom</packaging>

   <name>eXo Core</name>

   <properties>
      <exo.product.name>exo-core</exo.product.name>
      <exo.product.specification>2.4</exo.product.specification>
      
      <org.exoplatform.framework.junit.version>1.2.2-GA</org.exoplatform.framework.junit.version>
      <org.exoplatform.kernel.version>2.3.12-GA</org.exoplatform.kernel.version>

      <!-- Plugins updates -->
      <version.source.plugin>2.1.2</version.source.plugin>
      <version.release.plugin>2.2.1</version.release.plugin>
      <version.buildnumber.plugin>1.0</version.buildnumber.plugin>
   </properties>

   <scm>
      <connection>scm:git:git://github.com/exoplatform/core.git</connection>
      <developerConnection>scm:git:git@github.com:exoplatform/core.git</developerConnection>
      <url>http://fisheye.jboss.org/browse/exo-jcr/core</url>
   </scm>

   <modules>
      <module>exo.core.component.security.core</module>
      <module>exo.core.component.database</module>
      <module>exo.core.component.document</module>
      <module>exo.core.component.ldap</module>
      <module>exo.core.component.organization.tests</module>
      <module>exo.core.component.organization.api</module>
      <module>exo.core.component.organization.jdbc</module>
      <module>exo.core.component.organization.ldap</module>
      <module>exo.core.component.xml-processing</module>
      <module>exo.core.component.script.groovy</module>
      <module>exo.core.component.web.css</module>
      <module>packaging/module</module>
   </modules>

   <dependencyManagement>
      <dependencies>
      
         <dependency>
            <groupId>org.exoplatform.tool</groupId>
            <artifactId>exo.tool.framework.junit</artifactId>
            <version>${org.exoplatform.framework.junit.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.commons.test</artifactId>
            <version>${org.exoplatform.kernel.version}</version>
            <scope>test</scope>
         </dependency>  
         
         <dependency>
            <groupId>org.exoplatform.kernel</groupId>
            <artifactId>exo.kernel.component.common</artifactId>
            <version>${org.exoplatform.kernel.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.component.cache</artifactId>
            <version>${org.exoplatform.kernel.version}</version>
         </dependency>
         
          <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.database</artifactId>
            <version>${project.version}</version>
         </dependency>
         
         <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.ldap</artifactId>
            <version>${project.version}</version>
         </dependency>

         <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.organization.api</artifactId>
            <version>${project.version}</version>
         </dependency>

         <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.organization.jdbc</artifactId>
            <version>${project.version}</version>
         </dependency>
         
         <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.organization.tests</artifactId>
            <version>${project.version}</version>
            <classifier>test-sources</classifier>
            <scope>test</scope>
         </dependency>
         
         <dependency>
            <groupId>org.exoplatform.core</groupId>
            <artifactId>exo.core.component.security.core</artifactId>
            <version>${project.version}</version>
         </dependency>
	 
         <dependency>
           <groupId>org.jboss.security</groupId>
           <artifactId>jbosssx</artifactId>
           <scope>provided</scope>
           <version>2.0.4</version>
         </dependency>
         
         <dependency>
           <groupId>org.eclipse.jetty.aggregate</groupId>
           <artifactId>jetty-plus</artifactId>
           <version>7.1.5.v20100705</version>
           <scope>provided</scope>
         </dependency>

         <dependency>
            <groupId>javax.resource</groupId>
            <artifactId>connector-api</artifactId>
            <version>1.5</version>
         </dependency>

         <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>            
         </dependency>
         
         <dependency>
            <groupId>javax.transaction</groupId>
            <artifactId>jta</artifactId>
            <version>1.1</version>            
         </dependency>

         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.8</version>
            <scope>test</scope>
         </dependency>

         <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.5.8</version>
            <scope>test</scope>
         </dependency>
   
         <dependency>
            <groupId>org.apache.directory.server</groupId>
            <artifactId>apacheds-server-unit</artifactId>
            <version>1.0.2</version>
            <scope>test</scope>
         </dependency>
         
         <dependency>
            <groupId>org.javassist</groupId>
            <artifactId>javassist</artifactId>
            <version>3.14.0-GA</version>
            <scope>test</scope>
         </dependency>
         
         <dependency>
            <artifactId>hsqldb</artifactId>
            <groupId>org.hsqldb</groupId>
            <version>2.0.0</version>
            <scope>test</scope>
         </dependency>
      
         <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.6</version>
         </dependency>
         
         <dependency>
            <groupId>org.hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <version>2.0.0</version>
            <scope>test</scope>
         </dependency>

         <dependency>
            <groupId>com.experlog</groupId>
            <artifactId>xapool</artifactId>
            <version>1.5.0</version>
         </dependency>
         
         <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.3.2.GA</version>
         </dependency>
         
         <dependency>
            <groupId>xstream</groupId>
            <artifactId>xstream</artifactId>
            <version>1.0.2</version>
         </dependency>
      
         <dependency>
            <groupId>picocontainer</groupId>
            <artifactId>picocontainer</artifactId>
            <version>1.1</version>            
         </dependency>
         
         <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-hibernate-module</artifactId>
            <version>1.2.3</version>
         </dependency>

         <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet-xdoclet-module</artifactId>
            <version>1.2.3</version>
         </dependency>

         <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xjavadoc</artifactId>
            <version>1.2.3</version>
         </dependency>
         
         <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>1.7.6</version>
         </dependency>
         
         <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-annotations</artifactId>
            <version>3.4.0.GA</version>
         </dependency>
         
         <dependency>
            <groupId>org.apache.pdfbox</groupId>
            <artifactId>pdfbox</artifactId>
            <version>1.6.0</version>
         </dependency>
         <dependency>
            <groupId>org.htmlparser</groupId>
            <artifactId>htmlparser</artifactId>
            <version>1.6</version>
            <scope>compile</scope>
            <exclusions>
               <exclusion>
                  <groupId>com.sun</groupId>
                  <artifactId>tools</artifactId>
               </exclusion>
            </exclusions>
         </dependency>

         <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.6</version>
         </dependency>

         <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-scratchpad</artifactId>
            <version>3.6</version>
         </dependency>

         <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.6</version>
         </dependency>

         <dependency>
            <groupId>com.novell.ldap</groupId>
            <artifactId>jldap</artifactId>
            <version>4.3</version>
         </dependency>
         
         <dependency>
            <groupId>net.sf.jtidy</groupId>
            <artifactId>jtidy</artifactId>
            <version>r938</version>
         </dependency>
         
         <dependency>
            <groupId>org.w3c</groupId>
            <artifactId>sac</artifactId>
            <version>1.3</version>
         </dependency>

         <dependency>
            <groupId>batik</groupId>
            <artifactId>batik-util</artifactId>
            <version>1.7</version>
         </dependency>

         <dependency>
            <groupId>batik</groupId>
            <artifactId>batik-css</artifactId>
            <version>1.7</version>
         </dependency>

        <dependency>
           <groupId>commons-dbcp</groupId>
           <artifactId>commons-dbcp</artifactId>
           <version>1.2.2</version>
           <exclusions>
              <exclusion>
                 <groupId>commons-pool</groupId>
                 <artifactId>commons-pool</artifactId>
              </exclusion>
           </exclusions>
        </dependency>

        <dependency>
           <groupId>commons-pool</groupId>
           <artifactId>commons-pool</artifactId>
           <version>1.5.5</version>
        </dependency>
        
        <dependency>
           <groupId>org.javassist</groupId>
           <artifactId>javassist</artifactId>
           <version>3.14.0-GA</version>
        </dependency>

      <dependency>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-core</artifactId>
    <version>0.7</version>
  </dependency>

  <dependency>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-parsers</artifactId>
    <version>0.7</version>
  </dependency>

    <dependency>
       <groupId>org.ow2.jotm</groupId>
       <artifactId>jotm-core</artifactId>
       <version>2.1.9</version>
       <scope>test</scope>
    </dependency>

   </dependencies>
   </dependencyManagement>

   <dependencies>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-log4j12</artifactId>
         <scope>test</scope>
      </dependency>
   </dependencies>

   <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>
